From: Andre Noll Date: Mon, 3 Dec 2007 17:12:52 +0000 (+0100) Subject: Fix gcc warning on FreeBSD. X-Git-Tag: v0.3.0~73^2 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=3913d265cd6c3b8e43bac4f1f0deb1e96bc95a15;p=paraslash.git Fix gcc warning on FreeBSD. daemon.c:184: warning: long int format, int arg (arg 2) --- diff --git a/daemon.c b/daemon.c index 666b0a5c..931124e6 100644 --- a/daemon.c +++ b/daemon.c @@ -179,7 +179,7 @@ time_t server_uptime(enum uptime set_or_get) */ __malloc char *uptime_str(void) { - time_t t = server_uptime(UPTIME_GET); + long t = server_uptime(UPTIME_GET); return make_message("%li:%02li:%02li", t / 86400, (t / 3600) % 24, (t / 60) % 60); }