From 4a5ad23ff433d8565110754efec35ee41513b8dd Mon Sep 17 00:00:00 2001 From: nvt-se Date: Wed, 28 Nov 2007 13:01:02 +0000 Subject: [PATCH] Make it compile on Linux. tz isn't used anyway. --- platform/netsim/node.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/platform/netsim/node.c b/platform/netsim/node.c index 42cc597c2..7f292338f 100644 --- a/platform/netsim/node.c +++ b/platform/netsim/node.c @@ -30,7 +30,7 @@ * * Author: Adam Dunkels * - * $Id: node.c,v 1.8 2007/11/17 18:09:18 adamdunkels Exp $ + * $Id: node.c,v 1.9 2007/11/28 13:01:02 nvt-se Exp $ */ #include "node.h" #include "contiki.h" @@ -87,9 +87,8 @@ clock_time_t node_time(void) { struct timeval tv; - struct timezone tz; - gettimeofday(&tv, &tz); + gettimeofday(&tv, NULL); return tv.tv_sec * 1000 + tv.tv_usec / 1000/* + drift*/; } @@ -98,9 +97,8 @@ unsigned long node_seconds(void) { struct timeval tv; - struct timezone tz; - gettimeofday(&tv, &tz); + gettimeofday(&tv, NULL); return tv.tv_sec; }