summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-09-10 05:24:49 +0000
committerMark Spencer <markster@digium.com>2003-09-10 05:24:49 +0000
commitac19ba51bd35e4105a751d7b6ac2a8ed843f88a2 (patch)
tree7369fb6f917cb30c67faa951c0b0cdf29ff0eb73 /res
parentc87441603647cf1b2ee5d807078c45f728e041fc (diff)
Fix small logic errors (bug #242)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1494 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res')
-rwxr-xr-xres/res_monitor.c2
-rwxr-xr-xres/res_parking.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/res/res_monitor.c b/res/res_monitor.c
index 618c18701..38f737bc6 100755
--- a/res/res_monitor.c
+++ b/res/res_monitor.c
@@ -2,6 +2,8 @@
#include <stdlib.h>
#include <errno.h>
#include <string.h>
+#include <sys/types.h>
+#include <sys/stat.h>
#include <asterisk/lock.h>
#include <asterisk/channel.h>
diff --git a/res/res_parking.c b/res/res_parking.c
index 828be881b..ada9723fe 100755
--- a/res/res_parking.c
+++ b/res/res_parking.c
@@ -582,7 +582,7 @@ static int handle_parkedcalls(int fd, int argc, char *argv[])
cur=parkinglot;
while(cur) {
- ast_cli(fd, "%4d %25s (%-15s %-12s %-4d) %6ds\n"
+ ast_cli(fd, "%4d %25s (%-15s %-12s %-4d) %6lds\n"
,cur->parkingnum, cur->chan->name, cur->context, cur->exten
,cur->priority, cur->start.tv_sec + (cur->parkingtime/1000) - time(NULL));