summaryrefslogtreecommitdiffstats
path: root/x11vnc/xrandr.h
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/xrandr.h
parent363ae71df0f25b018136d19eed20be954e1dd088 (diff)
downloadlibtdevnc-64e731a9da82e3cc614e274d6fca6f855d0359b7.tar.gz
libtdevnc-64e731a9da82e3cc614e274d6fca6f855d0359b7.zip
x11vnc: --grabkbd, -grabptr, -env, -allowedcmds, unixpw+WAIT user fred:options
Diffstat (limited to 'x11vnc/xrandr.h')
-rw-r--r--x11vnc/xrandr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/x11vnc/xrandr.h b/x11vnc/xrandr.h
index baab196..5e3a7d6 100644
--- a/x11vnc/xrandr.h
+++ b/x11vnc/xrandr.h
@@ -34,11 +34,11 @@ extern int known_xrandr_mode(char *s);
if (subwin) { \
static int last = 0; \
subwin_trap_count++; \
- if (time(0) > last_subwin_trap + 60) { \
+ if (time(NULL) > last_subwin_trap + 60) { \
rfbLog("trapped GetImage xerror" \
" in SUBWIN mode. [%d]\n", \
subwin_trap_count); \
- last_subwin_trap = time(0); \
+ last_subwin_trap = time(NULL); \
last = subwin_trap_count; \
} \
if (subwin_trap_count - last > 30) { \