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>
diff --git a/board/hymod/bsp.c b/board/hymod/bsp.c
index 2cd3707..cd9c4e2 100644
--- a/board/hymod/bsp.c
+++ b/board/hymod/bsp.c
@@ -200,7 +200,7 @@
load_addr = simple_strtoul (argv[3], NULL, 16);
NetBootFileXferSize = 0;
- if (NetLoop (TFTP) <= 0) {
+ if (NetLoop(TFTPGET) <= 0) {
printf ("tftp transfer failed - aborting "
"fgpa load\n");
return 1;
diff --git a/board/hymod/fetch.c b/board/hymod/fetch.c
index e121d55..f5f9582 100644
--- a/board/hymod/fetch.c
+++ b/board/hymod/fetch.c
@@ -55,7 +55,7 @@
load_addr = addr;
NetBootFileXferSize = 0;
- if (NetLoop (TFTP) == 0) {
+ if (NetLoop(TFTPGET) == 0) {
printf ("tftp transfer of file '%s' failed\n", fn);
return (0);
}