mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-28 23:53:36 +00:00
Don't set tz in gettimeofday() because nobody implements it any longer.
This commit is contained in:
parent
903537daee
commit
f61e5ed140
1 changed files with 1 additions and 2 deletions
3
snac.c
3
snac.c
|
@ -34,9 +34,8 @@ d_char *tid(int offset)
|
|||
/* returns a time-based Id */
|
||||
{
|
||||
struct timeval tv;
|
||||
struct timezone tz;
|
||||
|
||||
gettimeofday(&tv, &tz);
|
||||
gettimeofday(&tv, NULL);
|
||||
|
||||
return xs_fmt("%10d.%06d", tv.tv_sec + offset, tv.tv_usec);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue