mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-26 07:31:33 +01:00
Fix a couple of compile warnings on OS X 10.6
This commit is contained in:
parent
f16178c08f
commit
303c04109b
1 changed files with 2 additions and 2 deletions
|
@ -33,8 +33,8 @@ static char *
|
||||||
secs_to_uptime(long secs)
|
secs_to_uptime(long secs)
|
||||||
{
|
{
|
||||||
long int days = secs / 86400;
|
long int days = secs / 86400;
|
||||||
int hours = (secs - (days * 86400)) / 3600;
|
int hours = (int)((secs - (days * 86400)) / 3600);
|
||||||
int minutes = (secs - (days * 86400) - (hours * 3600)) / 60;
|
int minutes = (int)((secs - (days * 86400) - (hours * 3600)) / 60);
|
||||||
char *uptime_string = NULL;
|
char *uptime_string = NULL;
|
||||||
|
|
||||||
switch (days) {
|
switch (days) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue