[virt-tools-list] [PATCH virt-viewer 4/9] Limit HAVE_SOCKETPAIR to directly concerned code

Marc-André Lureau marcandre.lureau at gmail.com
Thu Nov 13 17:20:40 UTC 2014


---
 src/virt-viewer.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/virt-viewer.c b/src/virt-viewer.c
index 19aa6ed..ae522bc 100644
--- a/src/virt-viewer.c
+++ b/src/virt-viewer.c
@@ -471,7 +471,7 @@ virt_viewer_open_connection(VirtViewerApp *self G_GNUC_UNUSED, int *fd)
     virErrorPtr err;
 #endif
     *fd = -1;
-#if defined(HAVE_SOCKETPAIR)
+
     if (!priv->dom)
         return TRUE;
 
@@ -487,6 +487,7 @@ virt_viewer_open_connection(VirtViewerApp *self G_GNUC_UNUSED, int *fd)
     }
 #endif
 
+#if defined(HAVE_SOCKETPAIR)
     if (socketpair(PF_UNIX, SOCK_STREAM, 0, pair) < 0)
         return FALSE;
 
-- 
1.9.3




More information about the virt-tools-list mailing list