aboutsummaryrefslogtreecommitdiff
path: root/networking/telnet.c
diff options
context:
space:
mode:
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 6c5f3d15b..6ad7712ab 100644
--- a/networking/telnet.c
+++ b/networking/telnet.c
@@ -132,7 +132,7 @@ static char *ttype;
132#endif 132#endif
133 133
134#ifdef CONFIG_FEATURE_TELNET_AUTOLOGIN 134#ifdef CONFIG_FEATURE_TELNET_AUTOLOGIN
135static char *autologin; 135static const char *autologin;
136#endif 136#endif
137 137
138#ifdef CONFIG_FEATURE_AUTOWIDTH 138#ifdef CONFIG_FEATURE_AUTOWIDTH
@@ -663,7 +663,7 @@ extern int telnet_main(int argc, char** argv)
663 while ((opt = getopt(argc, argv, "al:")) != EOF) { 663 while ((opt = getopt(argc, argv, "al:")) != EOF) {
664 switch (opt) { 664 switch (opt) {
665 case 'l': 665 case 'l':
666 autologin = bb_xstrdup(optarg); 666 autologin = optarg;
667 break; 667 break;
668 case 'a': 668 case 'a':
669 autologin = getenv("USER"); 669 autologin = getenv("USER");