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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Dmitry Guryanov <dguryanov@xxxxxxxxxxxxx>
---
 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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]