Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/rpcbind Don't compare a char to NULL.



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

description:
Don't compare a char to NULL.

diffstat:

 usr.sbin/rpcbind/rpcb_svc_com.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 7fde5c495766 -r 9b1a46481013 usr.sbin/rpcbind/rpcb_svc_com.c
--- a/usr.sbin/rpcbind/rpcb_svc_com.c   Tue Oct 21 02:51:37 2003 +0000
+++ b/usr.sbin/rpcbind/rpcb_svc_com.c   Tue Oct 21 02:53:02 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rpcb_svc_com.c,v 1.9 2002/11/08 00:16:39 fvdl Exp $    */
+/*     $NetBSD: rpcb_svc_com.c,v 1.10 2003/10/21 02:53:02 fvdl Exp $   */
 
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -1431,7 +1431,7 @@
        } else if (strcmp(arg->r_netid, tcptrans) == 0) {
                /* It is TCP */
                prot = IPPROTO_TCP;
-       } else if (arg->r_netid[0] == NULL) {
+       } else if (arg->r_netid[0] == 0) {
                prot = 0;       /* Remove all occurrences */
        } else {
                /* Not a IP protocol */



Home | Main Index | Thread Index | Old Index