diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2011-02-24 07:19:09 +0100 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2011-02-24 07:19:09 +0100 |
commit | 303c04109b9044715c2f0b7e8cd9f18027ee7d5f (patch) | |
tree | b536add799a283361db40fc81bd9f9e0f7f44541 /src/or/status.c | |
parent | f16178c08fce1255d06cd5410a626e351f679ef2 (diff) | |
download | tor-303c04109b9044715c2f0b7e8cd9f18027ee7d5f.tar.gz tor-303c04109b9044715c2f0b7e8cd9f18027ee7d5f.zip |
Fix a couple of compile warnings on OS X 10.6
Diffstat (limited to 'src/or/status.c')
-rw-r--r-- | 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 36b3f7b1f5..054567f4b7 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) { |