r5910 - trunk/src/host/dfu-util/src

stefan at docs.openmoko.org stefan at docs.openmoko.org
Wed Apr 7 20:04:06 CEST 2010


Author: stefan
Date: 2010-04-07 20:04:06 +0200 (Wed, 07 Apr 2010)
New Revision: 5910

Modified:
   trunk/src/host/dfu-util/src/main.c
Log:
main.c: Add parentheses to fix warning.

The cleaner compile output let me spot this one:
main.c:710: warning: suggest parentheses around operand of ?\226?\128?\152!?\226?\128?\153 or change ?\226?\128?\152&?\226?\128?\153 to ?\226?\128?\152&&?\226?\128?\153 or ?\226?\128?\152!?\226?\128?\153 to ?\226?\128?\152~?\226?\128?\153

Modified: trunk/src/host/dfu-util/src/main.c
===================================================================
--- trunk/src/host/dfu-util/src/main.c	2010-04-07 18:04:02 UTC (rev 5909)
+++ trunk/src/host/dfu-util/src/main.c	2010-04-07 18:04:06 UTC (rev 5910)
@@ -707,7 +707,7 @@
 				"DFU IF\n");
 			exit(1);
 		}
-	} else if (num_ifs > 1 && !dif->flags & (DFU_IFF_IFACE|DFU_IFF_ALT)) {
+	} else if (num_ifs > 1 && (!dif->flags) & (DFU_IFF_IFACE|DFU_IFF_ALT)) {
 		fprintf(stderr, "We have %u DFU Interfaces/Altsettings, "
 			"you have to specify one via --intf / --alt options\n",
 			num_ifs);




More information about the commitlog mailing list