Acked-by: Jonathon Jongsma <jjongsma@xxxxxxxxxx> On Fri, 2016-06-03 at 16:35 +0100, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> > --- > server/dcc-encoders.c | 2 +- > server/dcc-encoders.h | 2 +- > server/dcc.c | 12 ++++++------ > 3 files changed, 8 insertions(+), 8 deletions(-) > > diff --git a/server/dcc-encoders.c b/server/dcc-encoders.c > index 218522e..5570798 100644 > --- a/server/dcc-encoders.c > +++ b/server/dcc-encoders.c > @@ -139,7 +139,7 @@ static void glz_usr_free(GlzEncoderUsrContext *usr, void > *ptr) > free(ptr); > } > > -void encoder_data_init(EncoderData *data, DisplayChannelClient *dcc) > +void encoder_data_init(EncoderData *data) > { > data->bufs_tail = g_new(RedCompressBuf, 1); > data->bufs_head = data->bufs_tail; > diff --git a/server/dcc-encoders.h b/server/dcc-encoders.h > index 82750be..0d3e96a9 100644 > --- a/server/dcc-encoders.h > +++ b/server/dcc-encoders.h > @@ -98,7 +98,7 @@ typedef struct { > char message_buf[512]; > } EncoderData; > > -void encoder_data_init(EncoderData *data, DisplayChannelClient *dcc); > +void encoder_data_init(EncoderData *data); > void encoder_data_reset(EncoderData *data); > > typedef struct { > diff --git a/server/dcc.c b/server/dcc.c > index 9cc651b..336bae0 100644 > --- a/server/dcc.c > +++ b/server/dcc.c > @@ -719,7 +719,7 @@ static int dcc_compress_image_glz(DisplayChannelClient > *dcc, > spice_info("LZ global compress fmt=%d", src->format); > #endif > > - encoder_data_init(&glz_data->data, dcc); > + encoder_data_init(&glz_data->data); > > glz_drawable = get_glz_drawable(dcc, drawable); > glz_drawable_instance = add_glz_drawable_instance(glz_drawable); > @@ -744,7 +744,7 @@ static int dcc_compress_image_glz(DisplayChannelClient > *dcc, > stat_start_time_init(&start_time, &display_channel->zlib_glz_stat); > zlib_data = &dcc->zlib_data; > > - encoder_data_init(&zlib_data->data, dcc); > + encoder_data_init(&zlib_data->data); > > zlib_data->data.u.compressed_data.next = glz_data->data.bufs_head; > zlib_data->data.u.compressed_data.size_left = glz_size; > @@ -796,7 +796,7 @@ static int dcc_compress_image_lz(DisplayChannelClient > *dcc, > spice_info("LZ LOCAL compress"); > #endif > > - encoder_data_init(&lz_data->data, dcc); > + encoder_data_init(&lz_data->data); > > if (setjmp(lz_data->data.jmp_env)) { > encoder_data_reset(&lz_data->data); > @@ -886,7 +886,7 @@ static int dcc_compress_image_jpeg(DisplayChannelClient > *dcc, SpiceImage *dest, > return FALSE; > } > > - encoder_data_init(&jpeg_data->data, dcc); > + encoder_data_init(&jpeg_data->data); > > if (setjmp(jpeg_data->data.jmp_env)) { > encoder_data_reset(&jpeg_data->data); > @@ -985,7 +985,7 @@ static int dcc_compress_image_lz4(DisplayChannelClient > *dcc, SpiceImage *dest, > spice_info("LZ4 compress"); > #endif > > - encoder_data_init(&lz4_data->data, dcc); > + encoder_data_init(&lz4_data->data); > > if (setjmp(lz4_data->data.jmp_env)) { > encoder_data_reset(&lz4_data->data); > @@ -1053,7 +1053,7 @@ static int dcc_compress_image_quic(DisplayChannelClient > *dcc, SpiceImage *dest, > return FALSE; > } > > - encoder_data_init(&quic_data->data, dcc); > + encoder_data_init(&quic_data->data); > > if (setjmp(quic_data->data.jmp_env)) { > encoder_data_reset(&quic_data->data); _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel