diff options
Diffstat (limited to 'x11vnc/macosxCGP.c')
-rw-r--r-- | x11vnc/macosxCGP.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/x11vnc/macosxCGP.c b/x11vnc/macosxCGP.c index 0366f81..9049ebb 100644 --- a/x11vnc/macosxCGP.c +++ b/x11vnc/macosxCGP.c @@ -38,21 +38,22 @@ static EventLoopTimerUPP sstimerUPP; static EventLoopTimerRef sstimer; void macosxCG_screensaver_timer(EventLoopTimerRef timer, void *data) { - if (0) fprintf(stderr, "macosxCG_screensaver_timer: %d\n", time(0)); + if (0) fprintf(stderr, "macosxCG_screensaver_timer: %d\n", (int) time(0)); + if (!timer || !data) {} if (macosx_nosleep && client_count) { - if (0) fprintf(stderr, "UpdateSystemActivity: %d\n", time(0)); + if (0) fprintf(stderr, "UpdateSystemActivity: %d\n", (int) time(0)); UpdateSystemActivity(IdleActivity); } } void macosxCGP_screensaver_timer_off(void) { - if (0) fprintf(stderr, "macosxCGP_screensaver_timer_off: %d\n", time(0)); + if (0) fprintf(stderr, "macosxCGP_screensaver_timer_off: %d\n", (int) time(0)); RemoveEventLoopTimer(sstimer); DisposeEventLoopTimerUPP(sstimerUPP); } void macosxCGP_screensaver_timer_on(void) { - if (0) fprintf(stderr, "macosxCGP_screensaver_timer_on: %d\n", time(0)); + if (0) fprintf(stderr, "macosxCGP_screensaver_timer_on: %d\n", (int) time(0)); sstimerUPP = NewEventLoopTimerUPP(macosxCG_screensaver_timer); InstallEventLoopTimer(GetMainEventLoop(), kEventDurationSecond * 30, kEventDurationSecond * 30, sstimerUPP, NULL, &sstimer); |