aboutsummaryrefslogtreecommitdiffstats
path: root/cli.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-12-26 18:19:12 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-12-26 18:19:12 +0000
commitc5acba479d47d47b0809d2627f22762e77a7669f (patch)
tree1a9f3f52b9d9fdc502c341ca74ba1231bc98d753 /cli.c
parent678447e2d0fca85d2879bb94a68fda191f26f2dc (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.c4
1 files changed, 2 insertions, 2 deletions
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)) {