summaryrefslogtreecommitdiff
path: root/networking/telnetd.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/telnetd.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/telnetd.c')
-rw-r--r--networking/telnetd.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/networking/telnetd.c b/networking/telnetd.c
index 724c7cf..491c66f 100644
--- a/networking/telnetd.c
+++ b/networking/telnetd.c
@@ -1,4 +1,4 @@
-/* $Id: telnetd.c,v 1.12 2004/06/22 10:07:17 andersen Exp $
+/* $Id: telnetd.c,v 1.13 2004/09/14 17:24:58 bug1 Exp $
*
* Simple telnet server
* Bjorn Wesen, Axis Communications AB (bjornw@axis.com)
@@ -49,11 +49,10 @@
#define BUFSIZE 4000
-static const char *loginpath
#ifdef CONFIG_LOGIN
- = "/bin/login";
+static const char *loginpath = "/bin/login";
#else
-;
+static const char *loginpath;
#endif
static const char *issuefile = "/etc/issue.net";
@@ -401,10 +400,10 @@ telnetd_main(int argc, char **argv)
if (c == EOF) break;
switch (c) {
case 'f':
- issuefile = strdup (optarg);
+ issuefile = optarg;
break;
case 'l':
- loginpath = strdup (optarg);
+ loginpath = optarg;
break;
#ifndef CONFIG_FEATURE_TELNETD_INETD
case 'p':