]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
util: Sanitize ATTRIBUTE_NONNULL use in viriscsi.h
authorPeter Krempa <pkrempa@redhat.com>
Tue, 25 Mar 2014 07:17:27 +0000 (08:17 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 25 Mar 2014 07:26:39 +0000 (08:26 +0100)
commit562112f4f9caa922744ce342538747cdff7b4910
tree5b589bdf33fc1fefa2a09d39669470aa45960e48
parenta52feff02d1aaaa5571b63af6537716d5497c09c
util: Sanitize ATTRIBUTE_NONNULL use in viriscsi.h

Some of the function attributes marked as nonnull actually explicitly
handle the arguments for NULL. All changed functions handle missing
"initiatoriqn" argument well and virISCSIScanTargets also handles well
if the return pointers are missing. Remove some of the liberaly used
ATTRIBUTE_NONNULLs as coverity and possibly other compilers that honor
the attribute fail to compile the code.

Flaw introduced in commit 5e1d5dde
src/util/viriscsi.h