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

Signed-off-by: Dmitry Guryanov <dgurya...@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

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

Reply via email to