Source-Changes-HG archive

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

[src/trunk]: src/sbin/ifconfig Compare a pointer with NULL instead of testing...



details:   https://anonhg.NetBSD.org/src/rev/db3fc453686f
branches:  trunk
changeset: 751042:db3fc453686f
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Fri Jan 22 23:50:07 2010 +0000

description:
Compare a pointer with NULL instead of testing its "truth."

diffstat:

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

diffs (27 lines):

diff -r 51f1dc630157 -r db3fc453686f sbin/ifconfig/af_inet6.c
--- a/sbin/ifconfig/af_inet6.c  Fri Jan 22 23:27:01 2010 +0000
+++ b/sbin/ifconfig/af_inet6.c  Fri Jan 22 23:50:07 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: af_inet6.c,v 1.25 2009/09/11 22:06:29 dyoung Exp $     */
+/*     $NetBSD: af_inet6.c,v 1.26 2010/01/22 23:50:07 dyoung Exp $     */
 
 /*
  * Copyright (c) 1983, 1993
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: af_inet6.c,v 1.25 2009/09/11 22:06:29 dyoung Exp $");
+__RCSID("$NetBSD: af_inet6.c,v 1.26 2010/01/22 23:50:07 dyoung Exp $");
 #endif /* not lint */
 
 #include <sys/param.h> 
@@ -247,7 +247,7 @@
                        }
                }
        }
-       if (!lladdr)
+       if (lladdr == NULL)
                errx(EXIT_FAILURE, "could not determine link local address"); 
 
        memcpy(&in6->s6_addr[8], &lladdr->s6_addr[8], 8);



Home | Main Index | Thread Index | Old Index