diff options
author | runge <runge> | 2006-12-28 15:51:44 +0000 |
---|---|---|
committer | runge <runge> | 2006-12-28 15:51:44 +0000 |
commit | 99a557d673ac4444532ac7025cb479a229ea7fb3 (patch) | |
tree | 3e403f6e52782a3e458cada3501ae8b1839c8364 /x11vnc/cursor.c | |
parent | 56eb45a5f8ab93abb1e15d4c0b8214d06a3d6d18 (diff) | |
download | libvncserver-99a557d673ac4444532ac7025cb479a229ea7fb3.zip libvncserver-99a557d673ac4444532ac7025cb479a229ea7fb3.tar.gz |
x11vnc: clean up compiler warnings.
Diffstat (limited to 'x11vnc/cursor.c')
-rw-r--r-- | x11vnc/cursor.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/x11vnc/cursor.c b/x11vnc/cursor.c index 0f3b2c6..ab9218c 100644 --- a/x11vnc/cursor.c +++ b/x11vnc/cursor.c @@ -1227,6 +1227,8 @@ unsigned long get_cursor_serial(int mode) { return last_cursor; } else if (mode == 1) { return (unsigned long) last_index; + } else { + return (unsigned long) last_index; } } @@ -1320,7 +1322,7 @@ fprintf(stderr, "sc: %d %d/%d %d - %d %d\n", serial, w, h, cbpp, xhot, yhot); oldest = i; oldtime = curs_times[i]; } - if (serial == curs_index[i]) { + if (serial == (int) curs_index[i]) { /* * got a hit with an existing cursor, * use that one. |