]> git.ipfire.org Git - thirdparty/libvirt.git/commit
maint: avoid 'const fooPtr' in tests
authorEric Blake <eblake@redhat.com>
Sat, 5 Oct 2013 01:40:19 +0000 (19:40 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 14 Oct 2013 20:34:37 +0000 (14:34 -0600)
commitb8984770dcfeb0e7041c5a89d498f8e4a66258cd
treeaa79f9070817bf5b8d546a8b1d77d9158625679f
parent1b7ec657c520ea41bba3c2406e8c11c0bbb3fe39
maint: avoid 'const fooPtr' in tests

'const fooPtr' is the same as 'foo * const' (the pointer won't
change, but it's contents can).  But in general, if an interface
is trying to be const-correct, it should be using 'const foo *'
(the pointer is to data that can't be changed).

Fix up offenders in the testsuite.

* tests/cputest.c (cpuTestCompareXML): Use intended type.
* tests/qemucapabilitiestest.c (testQemuCaps): Likewise.
* tests/qemumonitorjsontest.c: Drop const.

Signed-off-by: Eric Blake <eblake@redhat.com>
tests/cputest.c
tests/qemucapabilitiestest.c
tests/qemumonitorjsontest.c