diff options
Diffstat (limited to 'clients/znol/znol.c')
-rw-r--r-- | clients/znol/znol.c | 9 |
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; |