summaryrefslogtreecommitdiff
path: root/networking/tftp.c
diff options
context:
space:
mode:
authorGlenn L McGrath2004-09-14 17:24:59 +0000
committerGlenn L McGrath2004-09-14 17:24:59 +0000
commitd4004ee6a933eaf3d3843624d8c63e922db8d7dd (patch)
treecef7a75838b66f62fb18c2b0f2479d29ce0422ba /networking/tftp.c
parentab1955c2367d18e25fde1791a2660ae69976c623 (diff)
downloadbusybox-d4004ee6a933eaf3d3843624d8c63e922db8d7dd.zip
busybox-d4004ee6a933eaf3d3843624d8c63e922db8d7dd.tar.gz
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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/networking/tftp.c b/networking/tftp.c
index 02ddb4d..3c94731 100644
--- a/networking/tftp.c
+++ b/networking/tftp.c
@@ -485,8 +485,8 @@ static inline int tftp(const int cmd, const struct hostent *host,
int tftp_main(int argc, char **argv)
{
struct hostent *host = NULL;
- char *localfile = NULL;
- char *remotefile = NULL;
+ const char *localfile = NULL;
+ const char *remotefile = NULL;
int port;
int cmd = 0;
int fd = -1;
@@ -538,10 +538,10 @@ int tftp_main(int argc, char **argv)
break;
#endif
case 'l':
- localfile = bb_xstrdup(optarg);
+ localfile = optarg;
break;
case 'r':
- remotefile = bb_xstrdup(optarg);
+ remotefile = optarg;
break;
}
}