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 character.



details:   https://anonhg.NetBSD.org/src/rev/31bb3d5e286b
branches:  trunk
changeset: 553718:31bb3d5e286b
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Tue Oct 21 00:00:34 2003 +0000

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

diffstat:

 lib/libc/rpc/clnt_simple.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 10fcb950d647 -r 31bb3d5e286b lib/libc/rpc/clnt_simple.c
--- a/lib/libc/rpc/clnt_simple.c        Mon Oct 20 22:52:19 2003 +0000
+++ b/lib/libc/rpc/clnt_simple.c        Tue Oct 21 00:00:34 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clnt_simple.c,v 1.24 2003/09/09 03:56:39 itojun Exp $  */
+/*     $NetBSD: clnt_simple.c,v 1.25 2003/10/21 00:00:34 fvdl Exp $    */
 
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)clnt_simple.c 1.49 89/01/31 Copyr 1984 Sun Micro";
 #else
-__RCSID("$NetBSD: clnt_simple.c,v 1.24 2003/09/09 03:56:39 itojun Exp $");
+__RCSID("$NetBSD: clnt_simple.c,v 1.25 2003/10/21 00:00:34 fvdl Exp $");
 #endif
 #endif
 
@@ -162,7 +162,7 @@
                rcp->valid = 0;
                rcp->client = NULL;
        }
-       if ((nettype == NULL) || (nettype[0] == NULL))
+       if ((nettype == NULL) || (nettype[0] == 0))
                nettype = "netpath";
        if (!(rcp->valid && rcp->pid == getpid() &&
                (rcp->prognum == prognum) &&



Home | Main Index | Thread Index | Old Index