[tor-commits] [tor/master] Fix a couple of compile warnings on OS X	10.6
    nickm at torproject.org 
    nickm at torproject.org
       
    Thu Feb 24 14:38:53 UTC 2011
    
    
  
commit 303c04109b9044715c2f0b7e8cd9f18027ee7d5f
Author: Sebastian Hahn <sebastian at torproject.org>
Date:   Thu Feb 24 07:19:09 2011 +0100
    Fix a couple of compile warnings on OS X 10.6
---
 src/or/status.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/or/status.c b/src/or/status.c
index 36b3f7b..054567f 100644
--- a/src/or/status.c
+++ b/src/or/status.c
@@ -33,8 +33,8 @@ static char *
 secs_to_uptime(long secs)
 {
   long int days = secs / 86400;
-  int hours = (secs - (days * 86400)) / 3600;
-  int minutes = (secs - (days * 86400) - (hours * 3600)) / 60;
+  int hours = (int)((secs - (days * 86400)) / 3600);
+  int minutes = (int)((secs - (days * 86400) - (hours * 3600)) / 60);
   char *uptime_string = NULL;
 
   switch (days) {
    
    
More information about the tor-commits
mailing list