summaryrefslogtreecommitdiffstats
path: root/libvncserver/zrleencodetemplate.c
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2011-03-17 13:32:08 +0100
committerChristian Beier <dontmind@freeshell.org>2011-03-17 13:32:08 +0100
commit56234cd0b656de3c8827288f2adf78c9cb12d0c5 (patch)
tree0b01c1373a38f8ace1f22ba039e25e7de7e66479 /libvncserver/zrleencodetemplate.c
parentbf2470cec69ab00f7213aa136f5a2d486c9da17a (diff)
downloadlibtdevnc-56234cd0b656de3c8827288f2adf78c9cb12d0c5.tar.gz
libtdevnc-56234cd0b656de3c8827288f2adf78c9cb12d0c5.zip
Fix remaining compiler warnings.
Diffstat (limited to 'libvncserver/zrleencodetemplate.c')
-rw-r--r--libvncserver/zrleencodetemplate.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/libvncserver/zrleencodetemplate.c b/libvncserver/zrleencodetemplate.c
index 3a6f117..b6de755 100644
--- a/libvncserver/zrleencodetemplate.c
+++ b/libvncserver/zrleencodetemplate.c
@@ -84,8 +84,6 @@ static const int bitsPerPackedPixel[] = {
0, 1, 2, 2, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4
};
-static zrlePaletteHelper paletteHelper;
-
#endif /* ZRLE_ONCE */
void ZRLE_ENCODE_TILE (PIXEL_T* data, int w, int h, zrleOutStream* os,
@@ -144,11 +142,7 @@ void ZRLE_ENCODE_TILE(PIXEL_T* data, int w, int h, zrleOutStream* os,
PIXEL_T* end = ptr + h * w;
*end = ~*(end-1); /* one past the end is different so the while loop ends */
-#if 0
- ph = &paletteHelper;
-#else
ph = (zrlePaletteHelper *) paletteHelper;
-#endif
zrlePaletteHelperInit(ph);
while (ptr < end) {