[or-cvs] r19367: {tor} Return -1 in the error case from read_bandwidth_usage. (in tor/trunk: . src/or)

sebastian at seul.org sebastian at seul.org
Thu Apr 23 22:04:10 UTC 2009


Author: sebastian
Date: 2009-04-23 18:04:10 -0400 (Thu, 23 Apr 2009)
New Revision: 19367

Modified:
   tor/trunk/ChangeLog
   tor/trunk/src/or/hibernate.c
Log:
Return -1 in the error case from read_bandwidth_usage.

Modified: tor/trunk/ChangeLog
===================================================================
--- tor/trunk/ChangeLog	2009-04-23 16:12:07 UTC (rev 19366)
+++ tor/trunk/ChangeLog	2009-04-23 22:04:10 UTC (rev 19367)
@@ -1,3 +1,9 @@
+Changes in version 0.2.1.15??? - ????-??-??
+  o Minor bugfixes:
+    - Actually return -1 in the error case for read_bandwidth_usage. Bug
+      was harmless, we currently don't care for the return value anywhere.
+      Bugfix on 0.2.0.9-alpha.
+
 Changes in version 0.2.1.14-rc - 2009-04-12
   o Major features:
     - Clients replace entry guards that were chosen more than a few months

Modified: tor/trunk/src/or/hibernate.c
===================================================================
--- tor/trunk/src/or/hibernate.c	2009-04-23 16:12:07 UTC (rev 19366)
+++ tor/trunk/src/or/hibernate.c	2009-04-23 22:04:10 UTC (rev 19367)
@@ -580,7 +580,7 @@
   }
 
   if (!state)
-    return 0;
+    return -1;
 
   /* Okay; it looks like the state file is more up-to-date than the
    * bw_accounting file, or the bw_accounting file is nonexistant,



More information about the tor-commits mailing list