[svn-commits] tzafrir: tools/trunk r7476 - /tools/trunk/xpp/astribank_is_starting.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Nov 4 14:12:39 CST 2009


Author: tzafrir
Date: Wed Nov  4 14:12:35 2009
New Revision: 7476

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=7476
Log:
xpp: make astribank_is_starting build without warnings.

autoconfig.h is needed as semtimedop() requires _GNU_SOURCE.

xpp rev: 7471

Modified:
    tools/trunk/xpp/astribank_is_starting.c

Modified: tools/trunk/xpp/astribank_is_starting.c
URL: http://svnview.digium.com/svn/dahdi/tools/trunk/xpp/astribank_is_starting.c?view=diff&rev=7476&r1=7475&r2=7476
==============================================================================
--- tools/trunk/xpp/astribank_is_starting.c (original)
+++ tools/trunk/xpp/astribank_is_starting.c Wed Nov  4 14:12:35 2009
@@ -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 @@
 	}
 	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;
 }
 




More information about the svn-commits mailing list