mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-09 19:50:26 +03:00
Don't set tz in gettimeofday() because nobody implements it any longer.
This commit is contained in:
parent
903537daee
commit
f61e5ed140
3
snac.c
3
snac.c
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user