X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=driver%2Ftimers.c;h=b8c3e91ede3b1153d20e925661ebe4024539668b;hb=258170f6204e23da06f272ffda1f4504b6ae2eaf;hp=64117ceaadde8ca06bfe1156a3836f07a75af68a;hpb=0a1527cc01e9894017614b7c36b838b2b6914ba9;p=xscreensaver diff --git a/driver/timers.c b/driver/timers.c index 64117cea..b8c3e91e 100644 --- a/driver/timers.c +++ b/driver/timers.c @@ -163,7 +163,7 @@ cycle_timer (junk1, junk2) kill_screenhack (); spawn_screenhack (False); } - cycle_id = XtAppAddTimeOut (app, how_long, cycle_timer, 0); + cycle_id = XtAppAddTimeOut (app, how_long, (XtTimerCallbackProc)cycle_timer, 0); } @@ -189,7 +189,7 @@ reset_timers () progname, timeout, timer_id); #endif XtRemoveTimeOut (timer_id); - timer_id = XtAppAddTimeOut (app, timeout, idle_timer, 0); + timer_id = XtAppAddTimeOut (app, timeout, (XtTimerCallbackProc)idle_timer, 0); if (cycle_id) abort (); last_activity_time = time ((time_t *) 0); @@ -217,7 +217,7 @@ check_pointer_timer (closure, this_timer) abort (); #endif - *timerP = XtAppAddTimeOut (app, pointer_timeout, check_pointer_timer, + *timerP = XtAppAddTimeOut (app, pointer_timeout, (XtTimerCallbackProc)check_pointer_timer, closure); XQueryPointer (dpy, screensaver_window, &root, &child, @@ -251,7 +251,7 @@ sleep_until_idle (until_idle_p) if (until_idle_p) { - timer_id = XtAppAddTimeOut (app, timeout, idle_timer, 0); + timer_id = XtAppAddTimeOut (app, timeout, (XtTimerCallbackProc)idle_timer, 0); #ifdef HAVE_XIDLE if (! use_xidle) #endif @@ -286,7 +286,7 @@ sleep_until_idle (until_idle_p) goto DONE; else timer_id = XtAppAddTimeOut (app, timeout - idle, - idle_timer, 0); + (XtTimerCallbackProc)idle_timer, 0); } break; @@ -299,7 +299,7 @@ sleep_until_idle (until_idle_p) #ifdef HAVE_XIDLE if (! use_xidle) #endif - XtAppAddTimeOut (app, notice_events_timeout, notice_events_timer, + XtAppAddTimeOut (app, notice_events_timeout, (XtTimerCallbackProc)notice_events_timer, (XtPointer) event.xcreatewindow.window); break;