summaryrefslogtreecommitdiff
path: root/networking/tftp.c
diff options
context:
space:
mode:
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;
}
}