diff --git a/commands/net.c b/commands/net.c index 2b949f2..f25a35d 100644 --- a/commands/net.c +++ b/commands/net.c @@ -189,8 +189,6 @@ return 1; } - safe_strncpy (BootFile, remotefile, sizeof(BootFile)); - if (NetLoopInit(proto) < 0) goto out; diff --git a/include/net.h b/include/net.h index 7c47b2d..c689a43 100644 --- a/include/net.h +++ b/include/net.h @@ -301,9 +301,6 @@ typedef enum { BOOTP, RARP, ARP, TFTP, DHCP, PING, DNS, NFS, CDP, NETCONS, SNTP } proto_t; -/* from net/net.c */ -extern char BootFile[128]; /* Boot File name */ - /* when CDP completes these hold the return values */ extern ushort CDPNativeVLAN; extern ushort CDPApplianceVLAN; diff --git a/net/tftp.c b/net/tftp.c index 89956f5..169855f 100644 --- a/net/tftp.c +++ b/net/tftp.c @@ -227,11 +227,11 @@ } } -void TftpStart(void) +void TftpStart(char *filename) { char ip1[16], ip2[16]; - tftp_filename = BootFile; + tftp_filename = filename; printf("TFTP from server %s; our IP address is %s\n" "\nFilename '%s'.\nLoading: *\b",