]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix const correctness
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 15 Jul 2014 11:36:00 +0000 (13:36 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 16 Jul 2014 10:07:24 +0000 (12:07 +0200)
commit607806f87ffaf33bd6243696c6bc099513fb7ace
treed8fd71560dafcf3eaed16c69ad85fdca086a7d1d
parent70120e2f5de21127d9e47b26a02880e74a053760
Fix const correctness

In many places we define a variable as a 'const char *' when in fact
we modify it just a few lines below. Or even free it. We should not do
that.

There's one exception though, in xenSessionFree() xenapi_utils.c. We
are freeing the xen_session structure which is defined in
xen/api/xen_common.h public header. The structure contains session_id
which is type of 'const char *' when in fact it should have been just
'char *'. So I'm leaving this unmodified, just noticing the fact in
comment.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/locking/lock_driver_lockd.c
src/qemu/qemu_capabilities.c
src/remote/remote_driver.c
src/xenapi/xenapi_utils.c
tools/virsh-domain.c
tools/wireshark/src/packet-libvirt.c
tools/wireshark/src/packet-libvirt.h