diff options
author | Eric Blake <eblake@redhat.com> | 2013-10-04 19:40:19 -0600 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2013-10-14 14:34:37 -0600 |
commit | b8984770dcfeb0e7041c5a89d498f8e4a66258cd (patch) | |
tree | aa79f9070817bf5b8d546a8b1d77d9158625679f /gnulib | |
parent | 1b7ec657c520ea41bba3c2406e8c11c0bbb3fe39 (diff) | |
download | libvirt-b8984770dcfeb0e7041c5a89d498f8e4a66258cd.tar.gz |
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>
Diffstat (limited to 'gnulib')
0 files changed, 0 insertions, 0 deletions