[libvirt] [PATCH 2/6] parallels: rename uuidstr to __uuidstr in macro

Dmitry Guryanov dguryanov at parallels.com
Wed Sep 5 10:13:54 UTC 2012


Rename the variable in macro to avoid warnings
"declaration of 'uuidstr' shadows a previous local" in
the future.

Signed-off-by: Dmitry Guryanov <dguryanov at parallels.com>
---
 src/parallels/parallels_driver.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/parallels/parallels_driver.c b/src/parallels/parallels_driver.c
index 794d61d..8b83a9d 100644
--- a/src/parallels/parallels_driver.c
+++ b/src/parallels/parallels_driver.c
@@ -60,12 +60,12 @@
 #define PRLSRVCTL                   "prlsrvctl"
 #define PARALLELS_DEFAULT_ARCH      "x86_64"
 
-#define parallelsDomNotFoundError(domain)                                \
-    do {                                                                 \
-        char uuidstr[VIR_UUID_STRING_BUFLEN];                            \
-        virUUIDFormat(domain->uuid, uuidstr);                            \
-        virReportError(VIR_ERR_NO_DOMAIN,                                \
-                       _("no domain with matching uuid '%s'"), uuidstr); \
+#define parallelsDomNotFoundError(domain)                                  \
+    do {                                                                   \
+        char __uuidstr[VIR_UUID_STRING_BUFLEN];                            \
+        virUUIDFormat(domain->uuid, __uuidstr);                            \
+        virReportError(VIR_ERR_NO_DOMAIN,                                  \
+                       _("no domain with matching uuid '%s'"), __uuidstr); \
     } while (0)
 
 #define parallelsParseError()                                                  \
-- 
1.7.1




More information about the libvir-list mailing list