summaryrefslogtreecommitdiff
path: root/common/cmd_net.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2011-10-24 18:00:02 +0000
committerGerrit <chrome-bot@google.com>2011-11-17 17:09:51 -0800
commit52d640d58d0bba723df03de4493cdcab167ca2ee (patch)
tree744de14e4752c84655929a6a54237a597c7b66c3 /common/cmd_net.c
parentda7491fc37940f82c15b44b03dfd209502235756 (diff)
BACKPORT: 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. (cherry-picked from e4bf0c5) Change-Id: I90d03045de0231553a693f7119bdcc67a908e3c9 Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/11796
Diffstat (limited to 'common/cmd_net.c')
-rw-r--r--common/cmd_net.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/cmd_net.c b/common/cmd_net.c
index ac06fac1ce..a6d28e5f5e 100644
--- a/common/cmd_net.c
+++ b/common/cmd_net.c
@@ -28,7 +28,7 @@
#include <command.h>
#include <net.h>
-static int netboot_common (proto_t, cmd_tbl_t *, int , char * const []);
+static int netboot_common(enum proto_t, cmd_tbl_t *, int, char * const []);
int do_bootp (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
@@ -46,7 +46,7 @@ int do_tftpb (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
int ret;
bootstage_mark(BOOTSTAGE_KERNELREAD_START, "tftp start");
- ret = netboot_common(TFTP, cmdtp, argc, argv);
+ ret = netboot_common(TFTPGET, cmdtp, argc, argv);
bootstage_mark(BOOTSTAGE_KERNELREAD_STOP, "tftp done");
return ret;
}
@@ -172,8 +172,8 @@ static void netboot_update_env (void)
#endif
}
-static int
-netboot_common (proto_t proto, cmd_tbl_t *cmdtp, int argc, char * const argv[])
+static int netboot_common(enum proto_t proto, cmd_tbl_t *cmdtp, int argc,
+ char * const argv[])
{
char *s;
char *end;