[Spice-commits] server/reds-private.h server/reds.c

Frediano Ziglio fziglio at kemper.freedesktop.org
Thu May 18 15:31:10 UTC 2017


 server/reds-private.h |    1 -
 server/reds.c         |    2 --
 2 files changed, 3 deletions(-)

New commits:
commit ed2e9d51f87faae76be2bf3c6f0a8fe9da834072
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Fri May 12 15:13:15 2017 +0100

    reds: Remove only assigned 'mcc' field
    
    This field was never actually used, only changed.
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Victor Toso <victortoso at redhat.com>

diff --git a/server/reds-private.h b/server/reds-private.h
index b8119ca5..915bcf6f 100644
--- a/server/reds-private.h
+++ b/server/reds-private.h
@@ -62,7 +62,6 @@ typedef struct RedsMigTargetClient {
 /* Intermediate state for on going monitors config message from a single
  * client, being passed to the guest */
 typedef struct RedsClientMonitorsConfig {
-    MainChannelClient *mcc;
     uint8_t *buffer;
     int buffer_size;
     int buffer_pos;
diff --git a/server/reds.c b/server/reds.c
index b08bc3d9..5bbbaa7a 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -1085,7 +1085,6 @@ static void reds_client_monitors_config_cleanup(RedsState *reds)
     cmc->buffer_size = cmc->buffer_pos = 0;
     free(cmc->buffer);
     cmc->buffer = NULL;
-    cmc->mcc = NULL;
 }
 
 static void reds_on_main_agent_monitors_config(RedsState *reds,
@@ -1098,7 +1097,6 @@ static void reds_on_main_agent_monitors_config(RedsState *reds,
     cmc->buffer_size += size;
     cmc->buffer = realloc(cmc->buffer, cmc->buffer_size);
     spice_assert(cmc->buffer);
-    cmc->mcc = mcc;
     memcpy(cmc->buffer + cmc->buffer_pos, message, size);
     cmc->buffer_pos += size;
     msg_header = (VDAgentMessage *)cmc->buffer;


More information about the Spice-commits mailing list