summaryrefslogtreecommitdiffstats
path: root/libvncserver/cursor.c
diff options
context:
space:
mode:
authorVic Lee <llyzs@163.com>2009-11-04 23:18:36 +0800
committerJohannes Schindelin <johannes.schindelin@gmx.de>2009-11-10 14:22:59 +0100
commita4cc897222b8cbfb621d27c7c9f070dbbb05def9 (patch)
tree22ab803866eee61ea0982ad6e4963be88e8486f4 /libvncserver/cursor.c
parentf49a292783407c14869d811c05c2bbd009af27f7 (diff)
downloadlibtdevnc-a4cc897222b8cbfb621d27c7c9f070dbbb05def9.tar.gz
libtdevnc-a4cc897222b8cbfb621d27c7c9f070dbbb05def9.zip
Fix various compilation warnings
Signed-off-by: Vic Lee <llyzs@163.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Diffstat (limited to 'libvncserver/cursor.c')
-rw-r--r--libvncserver/cursor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvncserver/cursor.c b/libvncserver/cursor.c
index 154bf11..5e30017 100644
--- a/libvncserver/cursor.c
+++ b/libvncserver/cursor.c
@@ -410,7 +410,7 @@ void rfbMakeXCursorFromRichCursor(rfbScreenInfoPtr rfbScreen,rfbCursorPtr cursor
for(i=0,bit=0x80;i<cursor->width;i++,bit=(bit&1)?0x80:bit>>1) {
if (interp) {
int r = 0, g = 0, b = 0, grey;
- char *p = cursor->richSource+j*width+i*bpp;
+ unsigned char *p = cursor->richSource+j*width+i*bpp;
if (bpp == 1) {
unsigned char* uc = (unsigned char*) p;
SETRGB(uc);