[Spice-commits] server/dcc-encoders.c server/dcc-encoders.h server/dcc.c

Frediano Ziglio fziglio at kemper.freedesktop.org
Sat Jun 4 09:11:08 UTC 2016


 server/dcc-encoders.c |    2 +-
 server/dcc-encoders.h |    2 +-
 server/dcc.c          |   12 ++++++------
 3 files changed, 8 insertions(+), 8 deletions(-)

New commits:
commit 4c171dbd0ce88a6fb985433987fcabd61030469f
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Fri Jun 3 15:00:03 2016 +0100

    Remove unused parameter
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Jonathon Jongsma <jjongsma at redhat.com>

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..0d3e96a 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);


More information about the Spice-commits mailing list