summaryrefslogtreecommitdiff
path: root/clients/znol/znol.c
diff options
context:
space:
mode:
authorGravatar Greg Hudson <ghudson@mit.edu>1997-09-14 17:50:06 +0000
committerGravatar Greg Hudson <ghudson@mit.edu>1997-09-14 17:50:06 +0000
commitac16f380e349fa39ec7e26bccb5456cb300006a5 (patch)
treec07ca88af97b4f6b77d28a2dc723d2e4621ed302 /clients/znol/znol.c
parentd33e482744fad80d95cdd89ed380c5b8401e49bf (diff)
Pull in sources from zephyr locker. See /mit/zephyr/repository for
detailed change information.
Diffstat (limited to 'clients/znol/znol.c')
-rw-r--r--clients/znol/znol.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/clients/znol/znol.c b/clients/znol/znol.c
index 9bc6764..fe29055 100644
--- a/clients/znol/znol.c
+++ b/clients/znol/znol.c
@@ -11,13 +11,13 @@
* "mit-copyright.h".
*/
+#include <sysdep.h>
#include <zephyr/zephyr.h>
#include <pwd.h>
-#include <string.h>
#ifndef lint
-static char rcsid_znol_c[] = "$Id$";
+static const char rcsid_znol_c[] = "$Id$";
#endif
#define SUBSATONCE 7
@@ -142,9 +142,8 @@ main(argc,argv)
*comment_ptr = '\0'; /* Ignore from # onwards */
/* Get rid of old-style nol entries, just in case */
cp = cleanname + strlen(cleanname) - 1;
- if (*cp == '\n')
- *cp = '\0';
- while (*--cp == ' ')
+ *cp = '\0';
+ while(*--cp == ' ')
*cp = '\0';
if (*cleanname == '@' || !*cleanname)
continue;