Don't set tz in gettimeofday() because nobody implements it any longer.

This commit is contained in:
default 2022-10-15 23:43:09 +02:00
parent 903537daee
commit f61e5ed140

3
snac.c
View file

@ -34,9 +34,8 @@ d_char *tid(int offset)
/* returns a time-based Id */ /* returns a time-based Id */
{ {
struct timeval tv; struct timeval tv;
struct timezone tz;
gettimeofday(&tv, &tz); gettimeofday(&tv, NULL);
return xs_fmt("%10d.%06d", tv.tv_sec + offset, tv.tv_usec); return xs_fmt("%10d.%06d", tv.tv_sec + offset, tv.tv_usec);
} }