[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Fix a couple of compile warnings on OS X 10.6
commit 303c04109b9044715c2f0b7e8cd9f18027ee7d5f
Author: Sebastian Hahn <sebastian@xxxxxxxxxxxxxx>
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) {
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits