diff options
author | Glenn L McGrath | 2004-09-14 17:24:59 +0000 |
---|---|---|
committer | Glenn L McGrath | 2004-09-14 17:24:59 +0000 |
commit | d4004ee6a933eaf3d3843624d8c63e922db8d7dd (patch) | |
tree | cef7a75838b66f62fb18c2b0f2479d29ce0422ba /networking/telnet.c | |
parent | ab1955c2367d18e25fde1791a2660ae69976c623 (diff) | |
download | busybox-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/telnet.c')
-rw-r--r-- | networking/telnet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/telnet.c b/networking/telnet.c index 6c5f3d1..6ad7712 100644 --- a/networking/telnet.c +++ b/networking/telnet.c @@ -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"); |