]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virDomainDefGetSecurityLabelDef: Fix const correctness
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 6 Aug 2021 08:30:59 +0000 (10:30 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 16 Aug 2021 07:21:10 +0000 (09:21 +0200)
commit34ce7e7e96452550031f0c92b767139de0ed2fda
treec0ff0af8a0fb5c154720960cbef6810764d40b81
parent42158b8936e492d71b00ad480683c45c2dbb65f5
virDomainDefGetSecurityLabelDef: Fix const correctness

The function doesn't write to domain definition really so make
@def argument as const. This allows us to call it from functions
where the domain definition is already const.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Tested-by: Ján Tomko <jtomko@redhat.com>
src/conf/domain_conf.c
src/conf/domain_conf.h