neighbor_table: explicitly cast to (time_t *) in calls to localtime()
authorFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 9 Nov 2012 16:56:06 +0000 (17:56 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Sat, 10 Nov 2012 09:33:33 +0000 (10:33 +0100)
To make it build on win64

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/neighbor_table.c

index 406b646..0ac4b8c 100644 (file)
@@ -389,7 +389,7 @@ olsr_print_neighbor_table(void)
   struct timeval now;
 
        (void)gettimeofday(&now, NULL);
-  nowtm = localtime(&now.tv_sec);
+  nowtm = localtime((time_t *)&now.tv_sec);
 
   OLSR_PRINTF(1,
               "\n--- %02d:%02d:%02d.%02d ------------------------------------------------ NEIGHBORS\n\n"