Module Name: src Committed By: joerg Date: Fri Nov 21 23:28:57 UTC 2014
Modified Files: src/sys/dev/sysmon: sysmon_power.c Log Message: Explicitly compare to NULL to show clang that the bool conversion is intentional, even if it is always true in case of the arrays. To generate a diff of this commit: cvs rdiff -u -r1.47 -r1.48 src/sys/dev/sysmon/sysmon_power.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/sysmon/sysmon_power.c diff -u src/sys/dev/sysmon/sysmon_power.c:1.47 src/sys/dev/sysmon/sysmon_power.c:1.48 --- src/sys/dev/sysmon/sysmon_power.c:1.47 Sun Aug 10 16:44:36 2014 +++ src/sys/dev/sysmon/sysmon_power.c Fri Nov 21 23:28:57 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: sysmon_power.c,v 1.47 2014/08/10 16:44:36 tls Exp $ */ +/* $NetBSD: sysmon_power.c,v 1.48 2014/11/21 23:28:57 joerg Exp $ */ /*- * Copyright (c) 2007 Juan Romero Pardines. @@ -69,7 +69,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: sysmon_power.c,v 1.47 2014/08/10 16:44:36 tls Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sysmon_power.c,v 1.48 2014/11/21 23:28:57 joerg Exp $"); #include "opt_compat_netbsd.h" #include <sys/param.h> @@ -653,7 +653,7 @@ sysmon_power_make_dictionary(prop_dictio #define SETPROP(key, str) \ do { \ - if ((str) && !prop_dictionary_set_cstring(dict, \ + if ((str) != NULL && !prop_dictionary_set_cstring(dict, \ (key), \ (str))) { \ printf("%s: failed to set %s\n", __func__, (str)); \