summaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-11-02 03:02:17 +0000
committerNick Mathewson <nickm@torproject.org>2004-11-02 03:02:17 +0000
commitad4dc7448257c229860206b078e02778bcb1b408 (patch)
tree823243e7bc13876a466176db862028402dd4526b /src/or/connection.c
parent85c79ffbc7b965355c3b51cc81000d517089e74e (diff)
downloadtor-ad4dc7448257c229860206b078e02778bcb1b408.tar.gz
tor-ad4dc7448257c229860206b078e02778bcb1b408.zip
Use a stricter set of warnings; make them all pass.
svn:r2645
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index f35764ae5f..e8bb977bbf 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -83,6 +83,7 @@ static int connection_finished_flushing(connection_t *conn);
static int connection_finished_connecting(connection_t *conn);
static int connection_read_to_buf(connection_t *conn);
static int connection_process_inbuf(connection_t *conn);
+static int connection_bucket_read_limit(connection_t *conn);
/**************************************************************/
@@ -642,7 +643,7 @@ int retry_all_listeners(int force) {
extern int global_read_bucket, global_write_bucket;
/** How many bytes at most can we read onto this connection? */
-int connection_bucket_read_limit(connection_t *conn) {
+static int connection_bucket_read_limit(connection_t *conn) {
int at_most;
/* do a rudimentary round-robin so one circuit can't hog a connection */