From cdd5ff8ed9900c4acee5e7f9eb7c2c43174e3827 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Wed, 14 Sep 2022 23:11:02 +0300 Subject: [PATCH] pass NULL as timezone to gettimeofday() --- src/main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index 9bb8f18..532275b 100644 --- a/src/main.c +++ b/src/main.c @@ -262,9 +262,7 @@ int main(int argc, char **argv) srand(time(NULL)); #else struct timeval tv; - struct timezone tz; - - gettimeofday(&tv, &tz); + gettimeofday(&tv, NULL); srand(tv.tv_usec); #endif