[Spice-devel] [PATCH 13/15] Change spice_server_set_ticket() to use local 's'
Frediano Ziglio
fziglio at redhat.com
Wed Jan 20 05:25:25 PST 2016
From: Jonathon Jongsma <jjongsma at redhat.com>
Rather than using global 'reds' variable
---
server/reds.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/server/reds.c b/server/reds.c
index 3f7ee27..e47c694 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -3607,12 +3607,12 @@ SPICE_GNUC_VISIBLE int spice_server_set_ticket(SpiceServer *s,
{
spice_assert(reds == s);
- if (reds_main_channel_connected(reds)) {
+ if (reds_main_channel_connected(s)) {
if (fail_if_connected) {
return -1;
}
if (disconnect_if_connected) {
- reds_disconnect(reds);
+ reds_disconnect(s);
}
}
--
2.4.3
More information about the Spice-devel
mailing list