Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/sliplogin Don't compare an int to NULL.



details:   https://anonhg.NetBSD.org/src/rev/160c2ab97f02
branches:  trunk
changeset: 553774:160c2ab97f02
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Tue Oct 21 02:53:57 2003 +0000

description:
Don't compare an int to NULL.

diffstat:

 usr.sbin/sliplogin/sliplogin.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 9b1a46481013 -r 160c2ab97f02 usr.sbin/sliplogin/sliplogin.c
--- a/usr.sbin/sliplogin/sliplogin.c    Tue Oct 21 02:53:02 2003 +0000
+++ b/usr.sbin/sliplogin/sliplogin.c    Tue Oct 21 02:53:57 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sliplogin.c,v 1.19 2003/08/07 11:25:43 agc Exp $       */
+/*     $NetBSD: sliplogin.c,v 1.20 2003/10/21 02:53:57 fvdl Exp $      */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)sliplogin.c        8.2 (Berkeley) 2/1/94";
 #else
-__RCSID("$NetBSD: sliplogin.c,v 1.19 2003/08/07 11:25:43 agc Exp $");
+__RCSID("$NetBSD: sliplogin.c,v 1.20 2003/10/21 02:53:57 fvdl Exp $");
 #endif
 #endif /* not lint */
 
@@ -362,7 +362,7 @@
         * to see whether changes are allowed (or just "route get").
         */
        (void)setuid(0);
-       if ((s = system(logincmd)) != NULL) {
+       if ((s = system(logincmd)) != 0) {
                syslog(LOG_ERR, "%s login failed: exit status %d from %s",
                       loginname, s, loginfile);
                (void)ioctl(STDIN_FILENO, TIOCSETD, (caddr_t)&odisc);



Home | Main Index | Thread Index | Old Index