[coreboot] r667 - coreboot-v3/util/dtc

svn at coreboot.org svn at coreboot.org
Sat Apr 26 14:05:09 CEST 2008


Author: ward
Date: 2008-04-26 14:05:08 +0200 (Sat, 26 Apr 2008)
New Revision: 667

Modified:
   coreboot-v3/util/dtc/livetree.c
Log:

Fix code warning - val.type is a char, and NULL is not.

Thanks to Carl-Daniel for spotting this one, and Segher for providing the solution right away.

This is a trivial patch.

Signed-off-by: Ward Vandewege <ward at gnu.org>
Acked-by: Ward Vandewege <ward at gnu.org>



Modified: coreboot-v3/util/dtc/livetree.c
===================================================================
--- coreboot-v3/util/dtc/livetree.c	2008-04-24 20:45:57 UTC (rev 666)
+++ coreboot-v3/util/dtc/livetree.c	2008-04-26 12:05:08 UTC (rev 667)
@@ -32,7 +32,7 @@
 
 	new->name = name;
 	new->val = val;
-	if (new->val.type == NULL) {
+	if (new->val.type == '\0') {
 		new->val.type = 'S'; // Default to 'scalar' type; if this is a cell or byte value, type will already be set
 	}
 





More information about the coreboot mailing list