diff TOOLS/realcodecs/cook.c @ 35904:cef5275fc11f

Avoid usage of obsolete and BSD-specific "struct timezone".
author diego
date Sun, 17 Mar 2013 22:47:31 +0000
parents 32725ca88fed
children
line wrap: on
line diff
--- a/TOOLS/realcodecs/cook.c	Sun Mar 17 22:47:17 2013 +0000
+++ b/TOOLS/realcodecs/cook.c	Sun Mar 17 22:47:31 2013 +0000
@@ -159,16 +159,15 @@
 	loadSyms();
 }
 
-struct timezone tz;
 struct timeval tv1, tv2;
 
 void tic(void) {
-	gettimeofday(&tv1, &tz);
+	gettimeofday(&tv1, NULL);
 }
 
 void toc(void) {
 	long secs, usecs;
-	gettimeofday(&tv2, &tz);
+	gettimeofday(&tv2, NULL);
 	secs=tv2.tv_sec-tv1.tv_sec;
 	usecs=tv2.tv_usec-tv1.tv_usec;
 	if (usecs<0) {