]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: hostdev: Move variable declaration inside CHECK_LIST_COUNT()
authorAndrea Bolognani <abologna@redhat.com>
Wed, 2 Mar 2016 14:23:51 +0000 (15:23 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 8 Mar 2016 09:34:13 +0000 (10:34 +0100)
commitff087d8daefd6395f600dec27785b79edb662f69
tree9d0f09cf864b01fdb0bbfb27a0e56a4a1d20ff3a
parentdd9f8e0292dbcc44563a1a1adb02c929f60ad28e
tests: hostdev: Move variable declaration inside CHECK_LIST_COUNT()

The 'actualCount' variable, formerly just 'count', is only used
internally by the macro, so it's better to move its declaration
inside the macro as well: this way, it doesn't have to be declared
by every single user.

The new name is less generic to make clashes less likely.
tests/virhostdevtest.c