]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
nodeinfo: Make sysfs_prefix usage more consistent
authorAndrea Bolognani <abologna@redhat.com>
Tue, 14 Jul 2015 09:40:13 +0000 (11:40 +0200)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 14 Jul 2015 21:11:36 +0000 (17:11 -0400)
commit75f6f5454602d54bdb3218db2ec4931df133b8d0
treed75834bc18510f60c22feadd761fe7f7c6132afd
parentc212e0c77986b0592f63e02d9ecd816aaf7aac18
nodeinfo: Make sysfs_prefix usage more consistent

Make sure sysfs_prefix, when present, is always the first argument
to a function; don't use a different name to refer to it; check
whether it is NULL, and hence SYSFS_SYSTEM_PATH should be used, only
when using it directly and not just passing it down to another
function; always pass down the same value we've been passed when
calling another function.
src/nodeinfo.c
src/nodeinfopriv.h
tests/nodeinfotest.c