summaryrefslogtreecommitdiff
path: root/server/mjpeg_encoder.c
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2011-11-10 16:29:13 +0200
committerAlon Levy <alevy@redhat.com>2011-11-10 16:29:19 +0200
commit2548cd713d1ec073e9c4fbae6264c5abb6f6c8f4 (patch)
treec44bdb28833602761b6d48559dde3b03859a0ff3 /server/mjpeg_encoder.c
parent6d89b2ba4c6e29a4e40cfb15073e92aa47955f5e (diff)
server/mjpeg_encoder: use size_t * consistently
fix another 64 bit-ism. unsigned long != size_t in general.
Diffstat (limited to 'server/mjpeg_encoder.c')
-rw-r--r--server/mjpeg_encoder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/mjpeg_encoder.c b/server/mjpeg_encoder.c
index 4b1023a..599d4f5 100644
--- a/server/mjpeg_encoder.c
+++ b/server/mjpeg_encoder.c
@@ -104,7 +104,7 @@ typedef struct {
struct jpeg_destination_mgr pub; /* public fields */
unsigned char ** outbuffer; /* target buffer */
- unsigned long * outsize;
+ size_t * outsize;
unsigned char * newbuffer; /* newly allocated buffer */
uint8_t * buffer; /* start of buffer */
size_t bufsize;
@@ -164,7 +164,7 @@ static void term_mem_destination(j_compress_ptr cinfo)
static void
spice_jpeg_mem_dest(j_compress_ptr cinfo,
- unsigned char ** outbuffer, unsigned long * outsize)
+ unsigned char ** outbuffer, size_t * outsize)
{
mem_destination_mgr *dest;
#define OUTPUT_BUF_SIZE 4096 /* choose an efficiently fwrite'able size */