summaryrefslogtreecommitdiff
path: root/networking/telnet.c
diff options
context:
space:
mode:
authorGlenn L McGrath2004-09-14 17:24:59 +0000
committerGlenn L McGrath2004-09-14 17:24:59 +0000
commitd4004ee6a933eaf3d3843624d8c63e922db8d7dd (patch)
treecef7a75838b66f62fb18c2b0f2479d29ce0422ba /networking/telnet.c
parentab1955c2367d18e25fde1791a2660ae69976c623 (diff)
downloadbusybox-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.c4
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");