[Olsr-dev] [PATCH v1 4/4] neighbor_table: explicitly cast to (time_t *) in calls to localtime()
Ferry Huberts
(spam-protected)
Fri Nov 9 17:59:41 CET 2012
From: Ferry Huberts <(spam-protected)>
To make it build on win64
Signed-off-by: Ferry Huberts <(spam-protected)>
---
src/neighbor_table.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/neighbor_table.c b/src/neighbor_table.c
index 406b646..0ac4b8c 100644
--- a/src/neighbor_table.c
+++ b/src/neighbor_table.c
@@ -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"
--
1.7.11.7
More information about the Olsr-dev
mailing list