diff options
author | runge <runge> | 2006-06-18 23:59:45 +0000 |
---|---|---|
committer | runge <runge> | 2006-06-18 23:59:45 +0000 |
commit | 64e731a9da82e3cc614e274d6fca6f855d0359b7 (patch) | |
tree | 540bca0a021f3e74b768a747bc3d75435848ca0d /x11vnc/userinput.c | |
parent | 363ae71df0f25b018136d19eed20be954e1dd088 (diff) | |
download | libtdevnc-64e731a9da82e3cc614e274d6fca6f855d0359b7.tar.gz libtdevnc-64e731a9da82e3cc614e274d6fca6f855d0359b7.zip |
x11vnc: --grabkbd, -grabptr, -env, -allowedcmds, unixpw+WAIT user fred:options
Diffstat (limited to 'x11vnc/userinput.c')
-rw-r--r-- | x11vnc/userinput.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/x11vnc/userinput.c b/x11vnc/userinput.c index 10e56d6..1395c71 100644 --- a/x11vnc/userinput.c +++ b/x11vnc/userinput.c @@ -2807,7 +2807,7 @@ static int try_copyrect(Window frame, int x, int y, int w, int h, int dx, int dy * it for now by CopyRect-ing the *whole* on-screen * rectangle (whether obscured or not!) */ - if (time(0) > dt_bad_check + 5) { + if (time(NULL) > dt_bad_check + 5) { char *dt = guess_desktop(); if (!strcmp(dt, "kde")) { dt_bad = 1; @@ -2816,7 +2816,7 @@ static int try_copyrect(Window frame, int x, int y, int w, int h, int dx, int dy } else { dt_bad = 0; } - dt_bad_check = time(0); + dt_bad_check = time(NULL); } if (clipshift) { @@ -3746,7 +3746,7 @@ if (db) fprintf(stderr, "send_copyrect: %d\n", sent_copyrect); * save the stack list, perhaps the user has * paused with button down. */ - last_save_stacklist = time(0); + last_save_stacklist = time(NULL); } else { stack_list_num = 0; } @@ -4126,7 +4126,7 @@ static void check_user_input4(double dt, double dtr, int tile_diffs) { sscanf(p, "%lf,%lf,%lf,%lf", &dt_cut, &Tfac_r, &Tfac_v, &Tfac_n); } first = 0; - ssec = time(0); + ssec = time(NULL); if (dtr) {} /* unused vars warning: */ } |