]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virDomainNumatuneNodeSpecified: Fix const correctness
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 18 May 2023 08:27:36 +0000 (10:27 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 22 May 2023 11:49:34 +0000 (13:49 +0200)
commita152d856c312bf6856fda0f76636c7a2700a3e63
tree94f87f5aea9c0d18a8e9315a5767c2e2678f3484
parent90404c53682f464b4a26efd618887dc336d9da80
virDomainNumatuneNodeSpecified: Fix const correctness

The virDomainNumatuneNodeSpecified() function does not write into
passed @numatune pointer, it just reads from it. Therefore, the
argument should be const, which allows this function to be called
from places where virDomainNuma is already const (e.g. domain
validation code).

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/conf/numa_conf.c
src/conf/numa_conf.h