Ver código fonte

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

default 4 anos atrás
pai
commit
f61e5ed140
1 arquivos alterados com 1 adições e 2 exclusões
  1. 1 2
      snac.c

+ 1 - 2
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);
 }
 }