aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-09-10 05:24:49 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-09-10 05:24:49 +0000
commit976304e2d745787a11d40773e5e89bc1f5ed441e (patch)
tree7369fb6f917cb30c67faa951c0b0cdf29ff0eb73 /res
parent2d2f69d9b8a98aa5a4fb1247c5346becaed1793d (diff)
Fix small logic errors (bug #242)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1494 f38db490-d61c-443f-a65b-d21fe96a405b
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));