From 99a557d673ac4444532ac7025cb479a229ea7fb3 Mon Sep 17 00:00:00 2001 From: runge Date: Thu, 28 Dec 2006 15:51:44 +0000 Subject: x11vnc: clean up compiler warnings. --- x11vnc/cursor.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'x11vnc/cursor.c') 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. -- cgit v1.2.3