[spice-gtk,1/7] usb-device-manager: Put all windows field in a single #if section

Submitted by Frediano Ziglio on July 11, 2019, 1 p.m.

Details

Message ID 20190711130054.17867-1-fziglio@redhat.com
State Accepted
Commit 7de90b18174b6b194e12fd3e136b62a68ea147ba
Headers show
Series "Series without cover letter" ( rev: 1 ) in Spice

Not browsing as part of any series.

Commit Message

Frediano Ziglio July 11, 2019, 1 p.m.
This reduces conditional code.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
---
 src/usb-device-manager.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

Patch hide | download patch | download mbox

diff --git a/src/usb-device-manager.c b/src/usb-device-manager.c
index 860f5c19..479558f4 100644
--- a/src/usb-device-manager.c
+++ b/src/usb-device-manager.c
@@ -103,13 +103,11 @@  struct _SpiceUsbDeviceManagerPrivate {
     int redirect_on_connect_rules_count;
 #ifdef G_OS_WIN32
     GUdevClient *udev;
+    usbdk_api_wrapper *usbdk_api;
+    HANDLE usbdk_hider_handle;
 #else
     gboolean redirecting; /* Handled by GUdevClient in the gudev case */
 #endif
-#ifdef G_OS_WIN32
-    usbdk_api_wrapper     *usbdk_api;
-    HANDLE                 usbdk_hider_handle;
-#endif
 #endif
     GPtrArray *devices;
     GPtrArray *channels;

Comments