aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-08-29 13:41:59 -0400
committerNick Mathewson <nickm@torproject.org>2011-08-29 13:41:59 -0400
commitcdbfc2a0c26fbe4cc3348babf3b92fb1ae931dec (patch)
tree550ce410b52a54880783231e041404ddc253c912 /src/or/connection.c
parent0de8afd8f545b4104ffb05d307b019cdf5aa505a (diff)
downloadtor-cdbfc2a0c26fbe4cc3348babf3b92fb1ae931dec.tar
tor-cdbfc2a0c26fbe4cc3348babf3b92fb1ae931dec.tar.gz
Fix compilation on non-bufferevent systems after 3803 fix: oops.
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 23546f022..761595238 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -2223,6 +2223,7 @@ record_num_bytes_transferred_impl(connection_t *conn,
rep_hist_note_exit_bytes(conn->port, num_written, num_read);
}
+#ifdef USE_BUFFEREVENTS
/** DOCDOC */
static void
record_num_bytes_transferred(connection_t *conn,
@@ -2242,6 +2243,7 @@ record_num_bytes_transferred(connection_t *conn,
record_num_bytes_transferred_impl(conn,now,num_read,num_written);
}
+#endif
#ifndef USE_BUFFEREVENTS
/** We just read <b>num_read</b> and wrote <b>num_written</b> bytes
@@ -2261,7 +2263,7 @@ connection_buckets_decrement(connection_t *conn, time_t now,
tor_fragile_assert();
}
- record_num_bytes_transferred_(conn, now, num_read, num_written);
+ record_num_bytes_transferred_impl(conn, now, num_read, num_written);
if (!connection_is_rate_limited(conn))
return; /* local IPs are free */