]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Annotate some virConnectPtr as mandatory non-null
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 10 Feb 2010 13:19:17 +0000 (13:19 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 10 Feb 2010 13:33:06 +0000 (13:33 +0000)
commit38536d6f7f2334f4e83e0c42c4a1b059b5cbbf9d
tree57c9593b14d5579ffa06fadb545d4e4257774a28
parentc4dcf043ca21dcae4a65b7bd63b0c1c73deac539
Annotate some virConnectPtr as mandatory non-null

Use the ATTRIBUTE_NONNULL annotation to mark some virConnectPtr
args as mandatory non-null so the compiler can warn of mistakes

* src/conf/domain_event.h: All virConnectPtr args must be non-null
* src/qemu/qemu_conf.h: qemudBuildCommandLine and
  qemudNetworkIfaceConnect() must be given non-null connection
* tests/qemuxml2argvtest.c: Provide a non-null (dummy) connection to
  qemudBuildCommandLine()
src/conf/domain_event.h
src/qemu/qemu_conf.h
tests/qemuxml2argvtest.c