security_dac: Fix const correctness

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>
This commit is contained in:
Michal Privoznik 2018-08-22 15:57:08 +02:00
parent 8a5713e235
commit ca010e9d76

View 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);