summaryrefslogtreecommitdiff
path: root/src/or/control.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-08-30 20:42:51 -0400
committerNick Mathewson <nickm@torproject.org>2011-08-30 20:44:42 -0400
commit393e4fb5b5529c666438ef04ebd076f90dd287fa (patch)
treea38b5288d5a6a8374d9e4b7e79d8f7745891aa8f /src/or/control.c
parent561ab14a5ed64dd3994fe23073e74efa3498e589 (diff)
downloadtor-393e4fb5b5529c666438ef04ebd076f90dd287fa.tar.gz
tor-393e4fb5b5529c666438ef04ebd076f90dd287fa.zip
Use %f with printf-style formatting, not %lf
For printf, %f and %lf are synonymous, since floats are promoted to doubles when passed as varargs. It's only for scanf that we need to say "%lf" for doubles and "%f" for floats. Apparenly, some older compilers think it's naughty to say %lf and like to spew warnings about it. Found by grarpamp.
Diffstat (limited to 'src/or/control.c')
-rw-r--r--src/or/control.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/control.c b/src/or/control.c
index de9dca0be9..1e411ec9c1 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -3712,8 +3712,8 @@ control_event_buildtimeout_set(const circuit_build_times_t *cbt,
send_control_event(EVENT_BUILDTIMEOUT_SET, ALL_FORMATS,
"650 BUILDTIMEOUT_SET %s TOTAL_TIMES=%lu "
- "TIMEOUT_MS=%lu XM=%lu ALPHA=%lf CUTOFF_QUANTILE=%lf "
- "TIMEOUT_RATE=%lf CLOSE_MS=%lu CLOSE_RATE=%lf\r\n",
+ "TIMEOUT_MS=%lu XM=%lu ALPHA=%f CUTOFF_QUANTILE=%f "
+ "TIMEOUT_RATE=%f CLOSE_MS=%lu CLOSE_RATE=%f\r\n",
type_string, (unsigned long)cbt->total_build_times,
(unsigned long)cbt->timeout_ms,
(unsigned long)cbt->Xm, cbt->alpha, qnt,