summaryrefslogtreecommitdiff
path: root/src/or/hibernate.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-05-24 23:51:08 +0000
committerRoger Dingledine <arma@torproject.org>2007-05-24 23:51:08 +0000
commit7127c30f46a0ca1b05c8cd43aac731d828f6852d (patch)
tree19f98df66e431ee7ec925c75f7a2650c06fd492d /src/or/hibernate.c
parent42d7b0877d8ae753b16c62007524971a681c7a9e (diff)
downloadtor-7127c30f46a0ca1b05c8cd43aac731d828f6852d.tar.gz
tor-7127c30f46a0ca1b05c8cd43aac731d828f6852d.zip
irix64's cc doesn't think hibernate_state_t is necessarily an int.
good point. svn:r10320
Diffstat (limited to 'src/or/hibernate.c')
-rw-r--r--src/or/hibernate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/hibernate.c b/src/or/hibernate.c
index 6c5e711cae..c6d661fe8e 100644
--- a/src/or/hibernate.c
+++ b/src/or/hibernate.c
@@ -753,7 +753,7 @@ hibernate_soft_limit_reached(void)
* reached. Puts us into "loose hibernation": we don't accept new
* connections, but we continue handling old ones. */
static void
-hibernate_begin(int new_state, time_t now)
+hibernate_begin(hibernate_state_t new_state, time_t now)
{
connection_t *conn;
or_options_t *options = get_options();
@@ -797,7 +797,7 @@ hibernate_begin(int new_state, time_t now)
/** Called when we've been hibernating and our timeout is reached. */
static void
-hibernate_end(int new_state)
+hibernate_end(hibernate_state_t new_state)
{
tor_assert(hibernate_state == HIBERNATE_STATE_LOWBANDWIDTH ||
hibernate_state == HIBERNATE_STATE_DORMANT);