From c5acba479d47d47b0809d2627f22762e77a7669f Mon Sep 17 00:00:00 2001 From: russell Date: Mon, 26 Dec 2005 18:19:12 +0000 Subject: cast time_t to an int in printf/scanf (issue #5635) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7634 f38db490-d61c-443f-a65b-d21fe96a405b --- cli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli.c') diff --git a/cli.c b/cli.c index a0e80bea6..4a0f95e54 100644 --- a/cli.c +++ b/cli.c @@ -360,7 +360,7 @@ static int handle_showuptime(int fd, int argc, char *argv[]) if (ast_startuptime) { tmptime = curtime - ast_startuptime; if (printsec) { - ast_cli(fd, "System uptime: %lu\n",tmptime); + ast_cli(fd, "System uptime: %lu\n",(u_long)tmptime); } else { timestr = format_uptimestr(tmptime); if (timestr) { @@ -372,7 +372,7 @@ static int handle_showuptime(int fd, int argc, char *argv[]) if (ast_lastreloadtime) { tmptime = curtime - ast_lastreloadtime; if (printsec) { - ast_cli(fd, "Last reload: %lu\n", tmptime); + ast_cli(fd, "Last reload: %lu\n", (u_long) tmptime); } else { timestr = format_uptimestr(tmptime); if ((timestr) && (!printsec)) { -- cgit v1.2.3