diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2004-09-14 17:24:59 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2004-09-14 17:24:59 +0000 |
commit | d4004ee6a933eaf3d3843624d8c63e922db8d7dd (patch) | |
tree | cef7a75838b66f62fb18c2b0f2479d29ce0422ba /networking/tftp.c | |
parent | ab1955c2367d18e25fde1791a2660ae69976c623 (diff) | |
download | busybox-w32-d4004ee6a933eaf3d3843624d8c63e922db8d7dd.tar.gz busybox-w32-d4004ee6a933eaf3d3843624d8c63e922db8d7dd.tar.bz2 busybox-w32-d4004ee6a933eaf3d3843624d8c63e922db8d7dd.zip |
Patch from Felipe Kellermann, remove some unnecessary dups, i declared a few extra const's also.
Diffstat (limited to 'networking/tftp.c')
-rw-r--r-- | networking/tftp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/networking/tftp.c b/networking/tftp.c index 02ddb4ded..3c947318b 100644 --- a/networking/tftp.c +++ b/networking/tftp.c | |||
@@ -485,8 +485,8 @@ static inline int tftp(const int cmd, const struct hostent *host, | |||
485 | int tftp_main(int argc, char **argv) | 485 | int tftp_main(int argc, char **argv) |
486 | { | 486 | { |
487 | struct hostent *host = NULL; | 487 | struct hostent *host = NULL; |
488 | char *localfile = NULL; | 488 | const char *localfile = NULL; |
489 | char *remotefile = NULL; | 489 | const char *remotefile = NULL; |
490 | int port; | 490 | int port; |
491 | int cmd = 0; | 491 | int cmd = 0; |
492 | int fd = -1; | 492 | int fd = -1; |
@@ -538,10 +538,10 @@ int tftp_main(int argc, char **argv) | |||
538 | break; | 538 | break; |
539 | #endif | 539 | #endif |
540 | case 'l': | 540 | case 'l': |
541 | localfile = bb_xstrdup(optarg); | 541 | localfile = optarg; |
542 | break; | 542 | break; |
543 | case 'r': | 543 | case 'r': |
544 | remotefile = bb_xstrdup(optarg); | 544 | remotefile = optarg; |
545 | break; | 545 | break; |
546 | } | 546 | } |
547 | } | 547 | } |