[PATCH v3 26/28] security_dac: Fix const correctness

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

 



These two functions (virSecurityDACSetOwnership and
virSecurityDACRestoreFileLabelInternal) do not really change
@src. Make it const.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 src/security/security_dac.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/security/security_dac.c b/src/security/security_dac.c
index 1be4ead21c..7528d8ba7d 100644
--- a/src/security/security_dac.c
+++ b/src/security/security_dac.c
@@ -624,7 +624,7 @@ virSecurityDACSetOwnershipInternal(const virSecurityDACData *priv,
 
 static int
 virSecurityDACSetOwnership(virSecurityManagerPtr mgr,
-                           virStorageSourcePtr src,
+                           const virStorageSource *src,
                            const char *path,
                            uid_t uid,
                            gid_t gid)
@@ -655,7 +655,7 @@ virSecurityDACSetOwnership(virSecurityManagerPtr mgr,
 
 static int
 virSecurityDACRestoreFileLabelInternal(virSecurityManagerPtr mgr,
-                                       virStorageSourcePtr src,
+                                       const virStorageSource *src,
                                        const char *path)
 {
     virSecurityDACDataPtr priv = virSecurityManagerGetPrivateData(mgr);
-- 
2.16.4

--
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]

  Powered by Linux