summaryrefslogtreecommitdiffstats
path: root/x11vnc/keyboard.c
diff options
context:
space:
mode:
authorrunge <runge>2006-06-18 23:59:45 +0000
committerrunge <runge>2006-06-18 23:59:45 +0000
commit64e731a9da82e3cc614e274d6fca6f855d0359b7 (patch)
tree540bca0a021f3e74b768a747bc3d75435848ca0d /x11vnc/keyboard.c
parent363ae71df0f25b018136d19eed20be954e1dd088 (diff)
downloadlibvncserver-64e731a9da82e3cc614e274d6fca6f855d0359b7.zip
libvncserver-64e731a9da82e3cc614e274d6fca6f855d0359b7.tar.gz
x11vnc: --grabkbd, -grabptr, -env, -allowedcmds, unixpw+WAIT user fred:options
Diffstat (limited to 'x11vnc/keyboard.c')
-rw-r--r--x11vnc/keyboard.c4
1 files changed, 2 insertions, 2 deletions
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;
OpenPOWER on IntegriCloud