diff options
author | Vic Lee <llyzs@163.com> | 2009-11-04 23:18:36 +0800 |
---|---|---|
committer | Johannes Schindelin <johannes.schindelin@gmx.de> | 2009-11-10 14:22:59 +0100 |
commit | a4cc897222b8cbfb621d27c7c9f070dbbb05def9 (patch) | |
tree | 22ab803866eee61ea0982ad6e4963be88e8486f4 /libvncserver | |
parent | f49a292783407c14869d811c05c2bbd009af27f7 (diff) | |
download | libtdevnc-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')
-rw-r--r-- | libvncserver/cursor.c | 2 | ||||
-rw-r--r-- | libvncserver/tightvnc-filetransfer/rfbtightserver.c | 2 |
2 files changed, 2 insertions, 2 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); diff --git a/libvncserver/tightvnc-filetransfer/rfbtightserver.c b/libvncserver/tightvnc-filetransfer/rfbtightserver.c index ef29514..43f5a9b 100644 --- a/libvncserver/tightvnc-filetransfer/rfbtightserver.c +++ b/libvncserver/tightvnc-filetransfer/rfbtightserver.c @@ -355,7 +355,7 @@ rfbSendInteractionCaps(rfbClientPtr cl) rfbBool -rfbTightExtensionInit(rfbClientPtr cl, void** data) +rfbTightExtensionInit(rfbClientPtr cl, void* data) { rfbSendInteractionCaps(cl); |