[libvirt] [PATCH] Fixed virGetUNIXSocketPath stub on Win32

Daniel P. Berrangé posted 1 patch 6 years, 2 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20180131172914.14537-1-berrange@redhat.com
src/util/virutil.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[libvirt] [PATCH] Fixed virGetUNIXSocketPath stub on Win32
Posted by Daniel P. Berrangé 6 years, 2 months ago
The _() macro was not terminated and an argument needs to be marked as
unused.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---

Pushed as a win32 build fix

 src/util/virutil.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/util/virutil.c b/src/util/virutil.c
index 8352e0f1f1..c23fa8f92e 100644
--- a/src/util/virutil.c
+++ b/src/util/virutil.c
@@ -2014,10 +2014,10 @@ char *virGetUNIXSocketPath(int fd)
 
 #else /* HAVE_SYS_UN_H */
 
-char *virGetUNIXSocketPath(int fd)
+char *virGetUNIXSocketPath(int fd ATTRIBUTE_UNUSED)
 {
     virReportSystemError(ENOSYS, "%s",
-                         _("UNIX sockets not supported on this platform");
+                         _("UNIX sockets not supported on this platform"));
     return NULL;
 }
 
-- 
2.14.3

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list