Fix clang warning when resetting connection

This was a regression on 2.0.10-stable: clang was warning about
values that were unused (because event_debug wasn't using them unless
USE_DEBUG was defined).  Found by Sebastian Hahn.
This commit is contained in:
Nick Mathewson 2011-04-26 23:42:01 -04:00
parent ea0d019b71
commit e49e64e774

2
http.c
View File

@ -1023,6 +1023,7 @@ evhttp_read_cb(struct bufferevent *bufev, void *arg)
break;
case EVCON_IDLE:
{
#ifdef USE_DEBUG
struct evbuffer *input;
size_t total_len;
@ -1031,6 +1032,7 @@ evhttp_read_cb(struct bufferevent *bufev, void *arg)
event_debug(("%s: read %d bytes in EVCON_IDLE state,"
" resetting connection",
__func__, (int)total_len));
#endif
evhttp_connection_reset(evcon);
}