[PATCH v6 2/5] vz: fix const correctness case

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

 



Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@xxxxxxxxxxxxx>
---
 src/vz/vz_utils.c | 2 +-
 src/vz/vz_utils.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/vz/vz_utils.c b/src/vz/vz_utils.c
index a1ddad0..f56cbdf 100644
--- a/src/vz/vz_utils.c
+++ b/src/vz/vz_utils.c
@@ -137,7 +137,7 @@ vzGetOutput(const char *binary, ...)
 }
 
 virDomainObjPtr
-vzNewDomain(vzConnPtr privconn, char *name, const unsigned char *uuid)
+vzNewDomain(vzConnPtr privconn, const char *name, const unsigned char *uuid)
 {
     virDomainDefPtr def = NULL;
     virDomainObjPtr dom = NULL;
diff --git a/src/vz/vz_utils.h b/src/vz/vz_utils.h
index b685478..8fcedf3 100644
--- a/src/vz/vz_utils.h
+++ b/src/vz/vz_utils.h
@@ -95,7 +95,7 @@ void vzDriverLock(vzConnPtr driver);
 void vzDriverUnlock(vzConnPtr driver);
 virDomainObjPtr
 vzNewDomain(vzConnPtr privconn,
-            char *name,
+            const char *name,
             const unsigned char *uuid);
 
 # define PARALLELS_BLOCK_STATS_FOREACH(OP)                              \
-- 
1.8.3.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]