format ‘%lu’ expects type ‘long unsigned int’, but argument 5 has type ‘uintptr_t’
Christian Kujau
lists at nerdbynature.de
Sat Nov 20 10:07:47 UTC 2010
Hi,
while compiling the today's git tree (e361de80bb), I get the following
error when compiling (gcc 4.3.2, powerpc32):
----------------------------------------------------
control.c: In function ‘control_event_signal’:
control.c:3621: error: format ‘%lu’ expects type ‘long unsigned int’, but argument 5 has type ‘uintptr_t’
make[3]: *** [control.o] Error 1
make[3]: Leaving directory `/usr/local/src/tor-git/src/or'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/tor-git/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/tor-git'
make: *** [all] Error 2
----------------------------------------------------
Reverting 7441999738e7c1b0ea94a39dd6e1f8a48043ff7d ("Add a SIGNAL event
for control connections") seems to help. Also, changing %lu to %u in
src/or/control.c helps too, but I don't know if this is the right thing to
do - at all. Please check.
Thanks,
Christian.
diff --git a/src/or/control.c b/src/or/control.c
index 5037529..307f0a2 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -3618,7 +3618,7 @@ control_event_signal(uintptr_t signal)
signal_string = "CLEARDNSCACHE";
break;
default:
- log_warn(LD_BUG, "Unrecognized signal %lu in control_event_signal",
+ log_warn(LD_BUG, "Unrecognized signal %u in control_event_signal",
signal);
return -1;
}
--
BOFH excuse #412:
Radial Telemetry Infiltration
More information about the tor-dev
mailing list