[libvirt] [PATCH] build: fix mingw build

Eric Blake eblake at redhat.com
Fri Feb 15 22:06:37 UTC 2013


Commits 2025356 and ba72cb12 introduced typos.

* src/util/virpci.c (virPCIIsVirtualFunction) [!__linux__]: Fix
function name.
* src/util/virutil.c (virGetDeviceID): Fix attribute spelling.
---

Another push under the build-breaker rule.

 src/util/virpci.c  | 4 ++--
 src/util/virutil.c | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/util/virpci.c b/src/util/virpci.c
index d1881e5..4bb82aa 100644
--- a/src/util/virpci.c
+++ b/src/util/virpci.c
@@ -1,7 +1,7 @@
 /*
  * virpci.c: helper APIs for managing host PCI devices
  *
- * Copyright (C) 2009-2012 Red Hat, Inc.
+ * Copyright (C) 2009-2013 Red Hat, Inc.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -2239,7 +2239,7 @@ virPCIGetVirtualFunctions(const char *sysfs_path ATTRIBUTE_UNUSED,
 }

 int
-virPCIDeviceIsVirtualFunction(const char *vf_sysfs_device_link ATTRIBUTE_UNUSED)
+virPCIIsVirtualFunction(const char *vf_sysfs_device_link ATTRIBUTE_UNUSED)
 {
     virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));
     return -1;
diff --git a/src/util/virutil.c b/src/util/virutil.c
index 55e1b52..7acda77 100644
--- a/src/util/virutil.c
+++ b/src/util/virutil.c
@@ -3270,9 +3270,9 @@ virGetDeviceID(const char *path, int *maj, int *min)
 }
 #else
 int
-virGetDeviceID(const char *path ATRRIBUTE_UNUSED,
-               int *maj ATRRIBUTE_UNUSED,
-               int *min ATRRIBUTE_UNUSED)
+virGetDeviceID(const char *path ATTRIBUTE_UNUSED,
+               int *maj ATTRIBUTE_UNUSED,
+               int *min ATTRIBUTE_UNUSED)
 {

     return -ENOSYS;
-- 
1.8.1.2




More information about the libvir-list mailing list