Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/rpc Don't use NULL to compare against a char.



details:   https://anonhg.NetBSD.org/src/rev/715c7e39c174
branches:  trunk
changeset: 553719:715c7e39c174
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Tue Oct 21 00:03:47 2003 +0000

description:
Don't use NULL to compare against a char.

diffstat:

 lib/libc/rpc/rpc_generic.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 31bb3d5e286b -r 715c7e39c174 lib/libc/rpc/rpc_generic.c
--- a/lib/libc/rpc/rpc_generic.c        Tue Oct 21 00:00:34 2003 +0000
+++ b/lib/libc/rpc/rpc_generic.c        Tue Oct 21 00:03:47 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rpc_generic.c,v 1.15 2003/09/09 03:56:40 itojun Exp $  */
+/*     $NetBSD: rpc_generic.c,v 1.16 2003/10/21 00:03:47 fvdl Exp $    */
 
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -41,7 +41,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: rpc_generic.c,v 1.15 2003/09/09 03:56:40 itojun Exp $");
+__RCSID("$NetBSD: rpc_generic.c,v 1.16 2003/10/21 00:03:47 fvdl Exp $");
 #endif
 
 #include "namespace.h"
@@ -209,7 +209,7 @@
 {
        int i;
 
-       if ((nettype == NULL) || (nettype[0] == NULL)) {
+       if ((nettype == NULL) || (nettype[0] == 0)) {
                return (_RPC_NETPATH);  /* Default */
        }
 
@@ -314,7 +314,7 @@
        else {
                return (NULL);
        }
-       if ((netid == NULL) || (netid[0] == NULL)) {
+       if ((netid == NULL) || (netid[0] == 0)) {
                return (NULL);
        }
        dummy = getnetconfigent(netid);



Home | Main Index | Thread Index | Old Index