diff options
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 | } |