Patch from Felipe Kellermann, remove some unnecessary dups, i declared a few extra const's also.

This commit is contained in:
Glenn L McGrath
2004-09-14 17:24:59 +00:00
parent ab1955c236
commit d4004ee6a9
5 changed files with 18 additions and 19 deletions

View File

@ -132,7 +132,7 @@ static char *ttype;
#endif
#ifdef CONFIG_FEATURE_TELNET_AUTOLOGIN
static char *autologin;
static const char *autologin;
#endif
#ifdef CONFIG_FEATURE_AUTOWIDTH
@ -663,7 +663,7 @@ extern int telnet_main(int argc, char** argv)
while ((opt = getopt(argc, argv, "al:")) != EOF) {
switch (opt) {
case 'l':
autologin = bb_xstrdup(optarg);
autologin = optarg;
break;
case 'a':
autologin = getenv("USER");