Module Name:    src
Committed By:   dyoung
Date:           Fri Jan 22 23:50:07 UTC 2010

Modified Files:
        src/sbin/ifconfig: af_inet6.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sbin/ifconfig/af_inet6.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/ifconfig/af_inet6.c
diff -u src/sbin/ifconfig/af_inet6.c:1.25 src/sbin/ifconfig/af_inet6.c:1.26
--- src/sbin/ifconfig/af_inet6.c:1.25	Fri Sep 11 22:06:29 2009
+++ src/sbin/ifconfig/af_inet6.c	Fri Jan 22 23:50:07 2010
@@ -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);

Reply via email to