summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-10-15 23:43:09 +0200
committerdefault <nobody@localhost>2022-10-15 23:43:09 +0200
commitf61e5ed1408d621ba9e581eb5ad85eaa1d65814f (patch)
treef3012b7a274f3276580d2efaa512cd8eb35c8812
parent903537daee17c10e7cc440afdc38f246f707098f (diff)
Don't set tz in gettimeofday() because nobody implements it any longer.
-rw-r--r--snac.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/snac.c b/snac.c
index 86a4c4f..d26fd3f 100644
--- 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);
}