hna_set: explicitly cast to (time_t *) in calls to localtime()
authorFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 9 Nov 2012 16:55:47 +0000 (17:55 +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/hna_set.c

index 71a5647..13d0dc3 100644 (file)
@@ -322,7 +322,7 @@ olsr_print_hna_set(void)
   const int ipwidthprefix = olsr_cnf->ip_version == AF_INET ? (INET_ADDRSTRLEN + 1 + INET_ADDRSTRLEN - 1) : (INET6_ADDRSTRLEN + 1 + 3 - 1);
 
        (void)gettimeofday(&now, NULL);
-  nowtm = localtime(&now.tv_sec);
+  nowtm = localtime((time_t *)&now.tv_sec);
 
   OLSR_PRINTF(1, "\n--- %02d:%02d:%02d.%02d ------------------------------------------------- HNA SET\n\n", nowtm->tm_hour,
               nowtm->tm_min, nowtm->tm_sec, (int)now.tv_usec / 10000);