# HG changeset patch # User diego # Date 1164985486 0 # Node ID 856d660a1ebd039e7e49e48040627b2840c777ce # Parent dd05dd9e3e7bd4ed7680d9db5e7c6f02951ba584 Fix a declarations vs statements warning. diff -r dd05dd9e3e7b -r 856d660a1ebd libvo/vo_quartz.c --- a/libvo/vo_quartz.c Fri Dec 01 14:58:11 2006 +0000 +++ b/libvo/vo_quartz.c Fri Dec 01 15:04:46 2006 +0000 @@ -897,6 +897,9 @@ static void flip_page(void) { + int curTime; + static int lastTime; + if(theWindow == NULL) return; @@ -980,8 +983,8 @@ //update activity every 30 seconds to prevent //screensaver from starting up. - int curTime = TickCount()/60; - static int lastTime = 0; + curTime = TickCount()/60; + lastTime = 0; if( ((curTime/ - lastTime) >= 5) || (lastTime == 0) ) {