diff options
author | steven_carr <steven_carr> | 2006-05-02 20:47:10 +0000 |
---|---|---|
committer | steven_carr <steven_carr> | 2006-05-02 20:47:10 +0000 |
commit | 422491c98ad260075ac5f819527906f4369550ef (patch) | |
tree | c00a1f57b172c10e0fd25a19025adb33f98c6c0d /libvncclient | |
parent | 188ccd2ee25df5334828f8bedcda6e4de96c837e (diff) | |
download | libvncserver-422491c98ad260075ac5f819527906f4369550ef.zip libvncserver-422491c98ad260075ac5f819527906f4369550ef.tar.gz |
signed vs unsigned warnings eliminated (gcc 4.0.1)
Diffstat (limited to 'libvncclient')
-rw-r--r-- | libvncclient/hextile.c | 2 | ||||
-rw-r--r-- | libvncclient/tight.c | 6 | ||||
-rw-r--r-- | libvncclient/zlib.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/libvncclient/hextile.c b/libvncclient/hextile.c index 6f0d70b..8698445 100644 --- a/libvncclient/hextile.c +++ b/libvncclient/hextile.c @@ -55,7 +55,7 @@ HandleHextileBPP (rfbClient* client, int rx, int ry, int rw, int rh) if (!ReadFromRFBServer(client, client->buffer, w * h * (BPP / 8))) return FALSE; - CopyRectangle(client, client->buffer, x, y, w, h); + CopyRectangle(client, (uint8_t *)client->buffer, x, y, w, h); continue; } diff --git a/libvncclient/tight.c b/libvncclient/tight.c index f9cc946..2f9fbab 100644 --- a/libvncclient/tight.c +++ b/libvncclient/tight.c @@ -198,7 +198,7 @@ HandleTightBPP (rfbClient* client, int rx, int ry, int rw, int rh) buffer2 = &client->buffer[TIGHT_MIN_TO_COMPRESS * 4]; filterFn(client, rh, (CARDBPP *)buffer2); - CopyRectangle(client, buffer2, rx, ry, rw, rh); + CopyRectangle(client, (uint8_t *)buffer2, rx, ry, rw, rh); return TRUE; } @@ -277,7 +277,7 @@ HandleTightBPP (rfbClient* client, int rx, int ry, int rw, int rh) if (extraBytes > 0) memcpy(client->buffer, &client->buffer[numRows * rowSize], extraBytes); - CopyRectangle(client, buffer2, rx, ry+rowsProcessed, rw, numRows); + CopyRectangle(client, (uint8_t *)buffer2, rx, ry+rowsProcessed, rw, numRows); rowsProcessed += numRows; } @@ -577,7 +577,7 @@ DecompressJpegRectBPP(rfbClient* client, int x, int y, int w, int h) *pixelPtr++ = RGB24_TO_PIXEL(BPP, client->buffer[dx*3], client->buffer[dx*3+1], client->buffer[dx*3+2]); } - CopyRectangle(client, &client->buffer[RFB_BUFFER_SIZE / 2], x, y + dy, w, 1); + CopyRectangle(client, (uint8_t *)&client->buffer[RFB_BUFFER_SIZE / 2], x, y + dy, w, 1); dy++; } diff --git a/libvncclient/zlib.c b/libvncclient/zlib.c index 89db504..e872d40 100644 --- a/libvncclient/zlib.c +++ b/libvncclient/zlib.c @@ -142,7 +142,7 @@ HandleZlibBPP (rfbClient* client, int rx, int ry, int rw, int rh) if ( inflateResult == Z_OK ) { /* Put the uncompressed contents of the update on the screen. */ - CopyRectangle(client, client->raw_buffer, rx, ry, rw, rh); + CopyRectangle(client, (uint8_t *)client->raw_buffer, rx, ry, rw, rh); } else { |