Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/pppd/pppd Don't return NULL for an integer.



details:   https://anonhg.NetBSD.org/src/rev/25b4ff38546f
branches:  trunk
changeset: 553770:25b4ff38546f
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Tue Oct 21 02:49:07 2003 +0000

description:
Don't return NULL for an integer.

diffstat:

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

diffs (27 lines):

diff -r 48da4112eb77 -r 25b4ff38546f usr.sbin/pppd/pppd/sys-bsd.c
--- a/usr.sbin/pppd/pppd/sys-bsd.c      Tue Oct 21 02:48:07 2003 +0000
+++ b/usr.sbin/pppd/pppd/sys-bsd.c      Tue Oct 21 02:49:07 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sys-bsd.c,v 1.47 2003/09/13 18:55:17 christos Exp $    */
+/*     $NetBSD: sys-bsd.c,v 1.48 2003/10/21 02:49:07 fvdl Exp $        */
 
 /*
  * sys-bsd.c - System-dependent procedures for setting up
@@ -79,7 +79,7 @@
 #if 0
 #define RCSID  "Id: sys-bsd.c,v 1.47 2000/04/13 12:04:23 paulus Exp "
 #else
-__RCSID("$NetBSD: sys-bsd.c,v 1.47 2003/09/13 18:55:17 christos Exp $");
+__RCSID("$NetBSD: sys-bsd.c,v 1.48 2003/10/21 02:49:07 fvdl Exp $");
 #endif
 #endif
 
@@ -1896,7 +1896,7 @@
      */
     if (getifaddrs(&ifap) != 0) {
        warn("getifaddrs: %m");
-       return NULL;
+       return 0;
     }
 
     for (ifa = ifap; ifa; ifa = ifa->ifa_next) {



Home | Main Index | Thread Index | Old Index