snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit f61e5ed1408d621ba9e581eb5ad85eaa1d65814f
parent 903537daee17c10e7cc440afdc38f246f707098f
Author: default <nobody@localhost>
Date:   Sat, 15 Oct 2022 23:43:09 +0200

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

Diffstat:
Msnac.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/snac.c b/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); }