[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r10320: irix64's cc doesn't think hibernate_state_t is necessarily a (tor/trunk/src/or)



Author: arma
Date: 2007-05-24 19:51:08 -0400 (Thu, 24 May 2007)
New Revision: 10320

Modified:
   tor/trunk/src/or/hibernate.c
Log:
irix64's cc doesn't think hibernate_state_t is necessarily an int.
good point.


Modified: tor/trunk/src/or/hibernate.c
===================================================================
--- tor/trunk/src/or/hibernate.c	2007-05-24 23:39:04 UTC (rev 10319)
+++ tor/trunk/src/or/hibernate.c	2007-05-24 23:51:08 UTC (rev 10320)
@@ -753,7 +753,7 @@
  * 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 @@
 
 /** 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);