These two functions (virSecurityDACSetOwnership and
virSecurityDACRestoreFileLabelInternal) do not really change
@src. Make it const.
Signed-off-by: Michal Privoznik <mprivozn(a)redhat.com>
---
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