[Spice-devel] [PATCH 3/3] server/mjpeg_encoder: use size_t * consistently
Alon Levy
alevy at redhat.com
Thu Nov 10 06:30:25 PST 2011
fix another 64 bit-ism. unsigned long != size_t in general.
---
server/mjpeg_encoder.c | 4 ++--
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 */
--
1.7.7.1
More information about the Spice-devel
mailing list