[Spice-devel] [PATCH 03/13] server/reds: remove the void* ctx field

Marc-André Lureau marcandre.lureau at redhat.com
Tue Feb 22 08:08:57 PST 2011


---
 server/reds.c |    2 --
 server/reds.h |    2 --
 2 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/server/reds.c b/server/reds.c
index d597e93..a2bc3b4 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -1877,7 +1877,6 @@ static RedLinkInfo *reds_accept_connection(int listen_socket)
         return NULL;
     }
     peer = link->peer;
-    peer->ctx = (void *)((unsigned long)link->peer->socket);
     peer->read = stream_read_cb;
     peer->write = stream_write_cb;
     peer->writev = stream_writev_cb;
@@ -1912,7 +1911,6 @@ static void reds_accept_ssl_connection(int fd, int event, void *data)
 
     SSL_set_bio(link->peer->ssl, sbio, sbio);
 
-    link->peer->ctx = (void *)(link->peer->ssl);
     link->peer->write = stream_ssl_write_cb;
     link->peer->read = stream_ssl_read_cb;
     link->peer->writev = stream_ssl_writev_cb;
diff --git a/server/reds.h b/server/reds.h
index 63b73c4..34e4082 100644
--- a/server/reds.h
+++ b/server/reds.h
@@ -31,8 +31,6 @@
 typedef struct RedsStream RedsStream;
 
 struct RedsStream {
-    void *ctx;
-
     int socket;
     SpiceWatch *watch;
 
-- 
1.7.4



More information about the Spice-devel mailing list