From 3913d265cd6c3b8e43bac4f1f0deb1e96bc95a15 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 3 Dec 2007 18:12:52 +0100 Subject: [PATCH] Fix gcc warning on FreeBSD. daemon.c:184: warning: long int format, int arg (arg 2) --- daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5