]> xenbits.xensource.com Git - libvirt.git/commitdiff
security_dac: Fix const correctness
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 22 Aug 2018 13:57:08 +0000 (15:57 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 7 Sep 2018 07:57:39 +0000 (09:57 +0200)
These two functions (virSecurityDACSetOwnership and
virSecurityDACRestoreFileLabelInternal) do not really change
@src. Make it const.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/security/security_dac.c

index 3d0c8d20cbaeaec64285b74f5d12b62ef579a92f..2a5f8639feb2d5f92f70b92f4d7b6347683f13d9 100644 (file)
@@ -627,7 +627,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);