aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-05-07 11:02:17 -0400
committerNick Mathewson <nickm@torproject.org>2012-05-07 11:02:17 -0400
commiteefdb9eec25463df012a27cdc28b6f7b73831d29 (patch)
treea1a3274092c8667250c16d313e81fe26aefb6f62
parent74810f95ade6e35ea841442dba7459d4c4ce0179 (diff)
downloadtor-eefdb9eec25463df012a27cdc28b6f7b73831d29.tar
tor-eefdb9eec25463df012a27cdc28b6f7b73831d29.tar.gz
Using %d to printf an enum may not be by-the-standard okay.
-rw-r--r--src/or/transports.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/transports.c b/src/or/transports.c
index eb076ae12..07b937115 100644
--- a/src/or/transports.c
+++ b/src/or/transports.c
@@ -457,7 +457,7 @@ configure_proxy(managed_proxy_t *mp)
mp->conf_state = PT_PROTO_BROKEN;
} else { /* unknown stream status */
log_warn(LD_BUG, "Unknown stream status '%d' while configuring managed "
- "proxy '%s'.", r, mp->argv[0]);
+ "proxy '%s'.", (int)r, mp->argv[0]);
}
/* if the proxy finished configuring, exit the loop. */
@@ -591,7 +591,7 @@ handle_finished_proxy(managed_proxy_t *mp)
case PT_PROTO_COMPLETED:
default:
log_warn(LD_CONFIG, "Unexpected state '%d' of managed proxy '%s'.",
- mp->conf_state, mp->argv[0]);
+ (int)mp->conf_state, mp->argv[0]);
tor_assert(0);
}