summaryrefslogtreecommitdiffstats
path: root/examples
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 /examples
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 'examples')
-rw-r--r--examples/example.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/example.c b/examples/example.c
index 71548fa..871ab0c 100644
--- a/examples/example.c
+++ b/examples/example.c
@@ -263,7 +263,7 @@ static void MakeRichCursor(rfbScreenInfoPtr rfbScreen)
c=rfbScreen->cursor = rfbMakeXCursor(w,h,bitmap,bitmap);
c->xhot = 16; c->yhot = 24;
- c->richSource = (char*)malloc(w*h*bpp);
+ c->richSource = (unsigned char*)malloc(w*h*bpp);
c->cleanupRichSource = TRUE;
for(j=0;j<h;j++) {
for(i=0;i<w;i++) {