summaryrefslogtreecommitdiffstats
path: root/osdep
diff options
context:
space:
mode:
authorrfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-05-13 05:56:40 +0000
committerrfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-05-13 05:56:40 +0000
commitfe2cc4dc15f3df6c876869855b452e2c3368e1e4 (patch)
tree08bdb28d0d834612ef54dbf1a14731b9663b590f /osdep
parent7d44793978273b7c02c0d5918baa308bb69df43a (diff)
downloadmpv-fe2cc4dc15f3df6c876869855b452e2c3368e1e4.tar.bz2
mpv-fe2cc4dc15f3df6c876869855b452e2c3368e1e4.tar.xz
remove useless cruft (caused error tz undefined)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18468 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'osdep')
-rw-r--r--osdep/timer-lx.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/osdep/timer-lx.c b/osdep/timer-lx.c
index 10f95be54b..f01cc02509 100644
--- a/osdep/timer-lx.c
+++ b/osdep/timer-lx.c
@@ -31,9 +31,8 @@ int usec_sleep(int usec_delay)
// 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 @@ unsigned int GetTimer(void){
// 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);
}