From d4004ee6a933eaf3d3843624d8c63e922db8d7dd Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Tue, 14 Sep 2004 17:24:59 +0000 Subject: Patch from Felipe Kellermann, remove some unnecessary dups, i declared a few extra const's also. --- networking/tftp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'networking/tftp.c') 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, 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; } } -- cgit v1.2.3