[PATCH] remove only written peer_minor_version field in RedsState

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
 server/reds-private.h | 1 -
 server/reds.c         | 3 ---
 2 files changed, 4 deletions(-)

diff --git a/server/reds-private.h b/server/reds-private.h
index 74a251b..97ea0ba 100644
--- a/server/reds-private.h
+++ b/server/reds-private.h
@@ -140,7 +140,6 @@ struct RedsState {
     pthread_mutex_t stat_lock;
     RedsStatValue roundtrip_stat;
 #endif
-    int peer_minor_version;
     int allow_multiple_clients;
 
     RedsClientMonitorsConfig client_monitors_config;
diff --git a/server/reds.c b/server/reds.c
index 1909e6e..988858d 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -2356,7 +2356,6 @@ static void reds_handle_link_error(void *opaque, int err)
 static void reds_handle_read_header_done(void *opaque)
 {
     RedLinkInfo *link = (RedLinkInfo *)opaque;
-    RedsState *reds = link->reds;
     SpiceLinkHeader *header = &link->link_header;
 
     header->major_version = GUINT32_FROM_LE(header->major_version);
@@ -2379,8 +2378,6 @@ static void reds_handle_read_header_done(void *opaque)
         return;
     }
 
-    reds->peer_minor_version = header->minor_version;
-
     if (header->size < sizeof(SpiceLinkMess)) {
         reds_send_link_error(link, SPICE_LINK_ERR_INVALID_DATA);
         spice_warning("bad size %u", header->size);
-- 
2.7.4

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]