[MPlayer-cvslog] CVS: main/osdep timer-lx.c,1.12,1.13

Richard Felker CVS syncmail at mplayerhq.hu
Sat May 13 07:56:42 CEST 2006


CVS change done by Richard Felker CVS

Update of /cvsroot/mplayer/main/osdep
In directory mail:/var2/tmp/cvs-serv25151/osdep

Modified Files:
	timer-lx.c 
Log Message:
remove useless cruft (caused error tz undefined)

Index: timer-lx.c
===================================================================
RCS file: /cvsroot/mplayer/main/osdep/timer-lx.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- timer-lx.c	9 Feb 2006 14:08:01 -0000	1.12
+++ timer-lx.c	13 May 2006 05:56:40 -0000	1.13
@@ -31,9 +31,8 @@
 // Returns current time in microseconds
 unsigned int GetTimer(void){
   struct timeval tv;
-  struct timezone tz;
 //  float s;
-  gettimeofday(&tv,&tz);
+  gettimeofday(&tv,NULL);
 //  s=tv.tv_usec;s*=0.000001;s+=tv.tv_sec;
   return (tv.tv_sec*1000000+tv.tv_usec);
 }  
@@ -41,9 +40,8 @@
 // Returns current time in milliseconds
 unsigned int GetTimerMS(void){
   struct timeval tv;
-  struct timezone tz;
 //  float s;
-  gettimeofday(&tv,&tz);
+  gettimeofday(&tv,NULL);
 //  s=tv.tv_usec;s*=0.000001;s+=tv.tv_sec;
   return (tv.tv_sec*1000+tv.tv_usec/1000);
 }  




More information about the MPlayer-cvslog mailing list