[PATCH 1/2]: add "count" argument to bss ctrl interface command

Kel Modderman kel
Fri Feb 1 08:03:31 PST 2008


This one would introduce compile warning on x86_64.

Sorry for the noise on these patches...

Signed-off-by: Kel Modderman <kel at otaku42.de>
---
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -1256,7 +1256,7 @@
 	if (count) {
 		pos = buf;
 		end = buf + buflen;
-		ret = snprintf(pos, end - pos, "%d\n", results->num);
+		ret = snprintf(pos, end - pos, "%ld\n", (long) results->num);
 		if (ret < 0 || ret >= end - pos)
 			return pos - buf;
 		pos += ret;
---



More information about the Hostap mailing list