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 /client_examples | |
parent | f49a292783407c14869d811c05c2bbd009af27f7 (diff) | |
download | libvncserver-a4cc897222b8cbfb621d27c7c9f070dbbb05def9.zip libvncserver-a4cc897222b8cbfb621d27c7c9f070dbbb05def9.tar.gz |
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')
-rw-r--r-- | client_examples/ppmtest.c | 2 |
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; |