[Spice-devel] [PATCH 09/15] Change reds_init_net() to take RedsState arg

Frediano Ziglio fziglio at redhat.com
Wed Jan 20 05:25:21 PST 2016


From: Jonathon Jongsma <jjongsma at redhat.com>

---
 server/reds.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/reds.c b/server/reds.c
index 58e45ae..81d253c 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -2570,7 +2570,7 @@ void reds_set_client_mm_time_latency(RedsState *reds, RedClient *client, uint32_
     }
 }
 
-static int reds_init_net(void)
+static int reds_init_net(RedsState *reds)
 {
     if (spice_port != -1 || spice_family == AF_UNIX) {
         reds->listen_socket = reds_init_socket(spice_addr, spice_port, spice_family);
@@ -3396,7 +3396,7 @@ static int do_spice_init(SpiceCoreInterface *core_interface)
     }
 #endif
 
-    if (reds_init_net() < 0) {
+    if (reds_init_net(reds) < 0) {
         goto err;
     }
     if (reds->secure_listen_socket != -1) {
-- 
2.4.3



More information about the Spice-devel mailing list