diff options
author | Jonathon Jongsma <jjongsma@redhat.com> | 2015-01-19 17:05:33 -0600 |
---|---|---|
committer | Fabiano FidĂȘncio <fidencio@redhat.com> | 2015-02-23 23:00:44 +0100 |
commit | ff9babba4a706ef5d3991090e93f5f22992b6a09 (patch) | |
tree | 8378b54f4af4da5bdbf3e46fe63d6e92307f3b0a | |
parent | 58b8ebaa292b4fa6b296f97597a2fe5383ecc7ce (diff) | |
download | spice-ff9babba4a706ef5d3991090e93f5f22992b6a09.tar.gz spice-ff9babba4a706ef5d3991090e93f5f22992b6a09.tar.xz spice-ff9babba4a706ef5d3991090e93f5f22992b6a09.zip |
spice_server_add_interface: use local 's' variable
Prefer local argument variable over global 'reds' variable
-rw-r--r-- | server/reds.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/reds.c b/server/reds.c index 289adee1..cca18b70 100644 --- a/server/reds.c +++ b/server/reds.c @@ -3122,9 +3122,9 @@ SPICE_GNUC_VISIBLE int spice_server_add_interface(SpiceServer *s, if (inputs_set_tablet(SPICE_CONTAINEROF(sin, SpiceTabletInstance, base)) != 0) { return -1; } - reds_update_mouse_mode(reds); - if (reds->is_client_mouse_allowed) { - inputs_set_tablet_logical_size(reds->monitor_mode.x_res, reds->monitor_mode.y_res); + reds_update_mouse_mode(s); + if (s->is_client_mouse_allowed) { + inputs_set_tablet_logical_size(s->monitor_mode.x_res, s->monitor_mode.y_res); } } else if (strcmp(interface->type, SPICE_INTERFACE_PLAYBACK) == 0) { |