Explorar el Código

Fix a couple of compile warnings on OS X 10.6

Sebastian Hahn hace 13 años
padre
commit
303c04109b
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/or/status.c

+ 2 - 2
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) {