diff --git a/src/util.c b/src/util.c index 26d92b922..17aabf648 100644 --- a/src/util.c +++ b/src/util.c @@ -993,10 +993,9 @@ long getTimeZone(void) { #if defined(__linux__) || defined(__sun) return timezone; #else - struct timeval tv; struct timezone tz; - gettimeofday(&tv, &tz); + gettimeofday(NULL, &tz); return tz.tz_minuteswest * 60L; #endif