From 64e731a9da82e3cc614e274d6fca6f855d0359b7 Mon Sep 17 00:00:00 2001 From: runge Date: Sun, 18 Jun 2006 23:59:45 +0000 Subject: x11vnc: --grabkbd, -grabptr, -env, -allowedcmds, unixpw+WAIT user fred:options --- x11vnc/keyboard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'x11vnc/keyboard.c') diff --git a/x11vnc/keyboard.c b/x11vnc/keyboard.c index c160726..a2ae349 100644 --- a/x11vnc/keyboard.c +++ b/x11vnc/keyboard.c @@ -324,7 +324,7 @@ void autorepeat(int restore, int bequiet) { void check_add_keysyms(void) { static time_t last_check = 0; int clear_freq = 300, quiet = 1, count; - time_t now = time(0); + time_t now = time(NULL); if (unixpw_in_progress) return; @@ -2612,7 +2612,7 @@ void keyboard(rfbBool down, rfbKeySym keysym, rfbClientPtr client) { KeyCode k; int idx, isbutton = 0; allowed_input_t input; - time_t now = time(0); + time_t now = time(NULL); double tnow; static int skipped_last_down; static rfbBool last_down; -- cgit v1.1