diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-12-26 18:19:12 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-12-26 18:19:12 +0000 |
commit | c5acba479d47d47b0809d2627f22762e77a7669f (patch) | |
tree | 1a9f3f52b9d9fdc502c341ca74ba1231bc98d753 /cli.c | |
parent | 678447e2d0fca85d2879bb94a68fda191f26f2dc (diff) |
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
Diffstat (limited to 'cli.c')
-rw-r--r-- | cli.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)) { |