소스 검색

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

default 3 년 전
부모
커밋
f61e5ed140
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  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);
 }
 }