diff options
author | Simon Glass | 2011-10-24 18:00:02 +0000 |
---|---|---|
committer | Wolfgang Denk | 2011-10-26 21:33:42 +0200 |
commit | e4bf0c5cfe1d7b2059a6802c9e11d567c928dbb1 (patch) | |
tree | b7119fed80e0e6bca1062215762c8ee2e414e747 /include/net.h | |
parent | 4793ee6522f10a3d108de7e47adbcf5f15eb3f46 (diff) |
net: tftpput: Rename TFTP to TFTPGET
This is a better name for this protocol. Also remove the typedef to keep
checkpatch happy, and move zeroing of NetBootFileXferSize a little
earlier since TFTPPUT will need to change this.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/net.h')
-rw-r--r-- | include/net.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/net.h b/include/net.h index d7ff0687cca..495f60e72bd 100644 --- a/include/net.h +++ b/include/net.h @@ -365,8 +365,10 @@ extern int NetState; /* Network loop state */ extern int NetRestartWrap; /* Tried all network devices */ -typedef enum { BOOTP, RARP, ARP, TFTP, DHCP, PING, DNS, NFS, CDP, NETCONS, SNTP, - TFTPSRV } proto_t; +enum proto_t { + BOOTP, RARP, ARP, TFTPGET, DHCP, PING, DNS, NFS, CDP, NETCONS, SNTP, + TFTPSRV +}; /* from net/net.c */ extern char BootFile[128]; /* Boot File name */ @@ -392,7 +394,7 @@ extern int NetTimeOffset; /* offset time from UTC */ #endif /* Initialize the network adapter */ -extern int NetLoop(proto_t); +extern int NetLoop(enum proto_t); /* Shutdown adapters and cleanup */ extern void NetStop(void); |