summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-11-04 20:12:35 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-11-04 20:12:35 +0000
commit11666be08bf60209c50cd505a78c1bfbc23cb423 (patch)
tree6398a10b3193ada8bc27c03f710d43a34e7e2ae9
parent63e9bac6efb132364af942d5642a6d44e1933bb3 (diff)
xpp: make astribank_is_starting build without warnings.
autoconfig.h is needed as semtimedop() requires _GNU_SOURCE. xpp rev: 7471 git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7476 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rw-r--r--xpp/astribank_is_starting.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/xpp/astribank_is_starting.c b/xpp/astribank_is_starting.c
index 9a1552b..2ae1f73 100644
--- a/xpp/astribank_is_starting.c
+++ b/xpp/astribank_is_starting.c
@@ -1,3 +1,4 @@
+#include "../autoconfig.h"
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/sem.h>
@@ -6,6 +7,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <time.h>
static char *progname;
static const key_t key_astribanks = 0xAB11A0;
@@ -106,9 +108,9 @@ static int absem_wait(void)
}
now = time(NULL);
if(debug)
- fprintf(stderr, "%s: waited on absem %d seconds\n", progname, now - start_wait);
+ fprintf(stderr, "%s: waited on absem %ld seconds\n", progname, now - start_wait);
if(verbose)
- printf("Finished after %d seconds\n", now - start_wait);
+ printf("Finished after %ld seconds\n", now - start_wait);
return 0;
}