Mercurial > mplayer.hg
diff TOOLS/realcodecs/drv3.c @ 35904:cef5275fc11f
Avoid usage of obsolete and BSD-specific "struct timezone".
author | diego |
---|---|
date | Sun, 17 Mar 2013 22:47:31 +0000 |
parents | b0f5b5d43941 |
children |
line wrap: on
line diff
--- a/TOOLS/realcodecs/drv3.c Sun Mar 17 22:47:17 2013 +0000 +++ b/TOOLS/realcodecs/drv3.c Sun Mar 17 22:47:31 2013 +0000 @@ -136,16 +136,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) {