summaryrefslogtreecommitdiffstats
path: root/client_examples/ppmtest.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 /client_examples/ppmtest.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 'client_examples/ppmtest.c')
-rw-r--r--client_examples/ppmtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client_examples/ppmtest.c b/client_examples/ppmtest.c
index dbb5d57..0422937 100644
--- a/client_examples/ppmtest.c
+++ b/client_examples/ppmtest.c
@@ -40,7 +40,7 @@ static void SaveFramebufferAsPPM(rfbClient* client, int x, int y, int w, int h)
fprintf(f,"P6\n# %s\n%d %d\n255\n",client->desktopName,client->width,client->height);
for(j=0;j<client->height*row_stride;j+=row_stride)
for(i=0;i<client->width*bpp;i+=bpp) {
- const char* p=client->frameBuffer+j+i;
+ unsigned char* p=client->frameBuffer+j+i;
unsigned int v;
if(bpp==4)
v=*(unsigned int*)p;