Patch from Felipe Kellermann, remove some unnecessary dups, i declared a few extra const's also.
This commit is contained in:
parent
ab1955c236
commit
d4004ee6a9
5 changed files with 18 additions and 19 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue