diff options
author | Christian Beier <dontmind@freeshell.org> | 2011-03-17 14:43:55 +0100 |
---|---|---|
committer | Christian Beier <dontmind@freeshell.org> | 2011-03-17 14:43:55 +0100 |
commit | fe1ca16e9b75b5f38ab374c8dfff92d2c3ea4532 (patch) | |
tree | 8539521ed668d65f6dbd59c491bc9565bce6e8cb /libvncserver/ultra.c | |
parent | 56234cd0b656de3c8827288f2adf78c9cb12d0c5 (diff) | |
download | libtdevnc-fe1ca16e9b75b5f38ab374c8dfff92d2c3ea4532.tar.gz libtdevnc-fe1ca16e9b75b5f38ab374c8dfff92d2c3ea4532.zip |
Fix (most) MinGW32 compiler warnings.
Diffstat (limited to 'libvncserver/ultra.c')
-rw-r--r-- | libvncserver/ultra.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libvncserver/ultra.c b/libvncserver/ultra.c index 9a3b14f..47fab55 100644 --- a/libvncserver/ultra.c +++ b/libvncserver/ultra.c @@ -50,7 +50,7 @@ rfbSendOneRectEncodingUltra(rfbClientPtr cl, + (x * (cl->scaledScreen->bitsPerPixel / 8))); int maxRawSize; - int maxCompSize; + lzo_uint maxCompSize; maxRawSize = (w * h * (cl->format.bitsPerPixel / 8)); @@ -92,7 +92,7 @@ rfbSendOneRectEncodingUltra(rfbClientPtr cl, } /* Perform the compression here. */ - deflateResult = lzo1x_1_compress((unsigned char *)cl->beforeEncBuf, (lzo_uint)(w * h * (cl->format.bitsPerPixel / 8)), (unsigned char *)cl->afterEncBuf, (lzo_uint *)&maxCompSize, cl->lzoWrkMem); + deflateResult = lzo1x_1_compress((unsigned char *)cl->beforeEncBuf, (lzo_uint)(w * h * (cl->format.bitsPerPixel / 8)), (unsigned char *)cl->afterEncBuf, &maxCompSize, cl->lzoWrkMem); /* maxCompSize now contains the compressed size */ /* Find the total size of the resulting compressed data. */ |