diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2004-09-14 21:24:59 +0400 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2004-09-14 21:24:59 +0400 |
commit | d4004ee6a933eaf3d3843624d8c63e922db8d7dd (patch) | |
tree | cef7a75838b66f62fb18c2b0f2479d29ce0422ba /networking/telnetd.c | |
parent | ab1955c2367d18e25fde1791a2660ae69976c623 (diff) |
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.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/networking/telnetd.c b/networking/telnetd.c index 724c7cf75..491c66fd1 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': |