From: Roman Bogorodskiy Date: Tue, 8 Apr 2014 16:30:23 +0000 (+0400) Subject: bhyve: fix ATTRIBUTE_NONNULL usage X-Git-Tag: v1.2.4-rc1~150 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=986a07c7099488a4abdb04415fd3af42e65b87b6;p=thirdparty%2Flibvirt.git bhyve: fix ATTRIBUTE_NONNULL usage Fix incorrect ATTRIBUTE_NONNULL usage introduced in 17b17565 which caused build failure: bhyve/bhyve_driver.c:127:48: error: expected ')' bhyveDriverGetCapabilities(bhyveConnPtr driver ATTRIBUTE_NONNULL) ^ bhyve/bhyve_driver.c:127:27: note: to match this '(' bhyveDriverGetCapabilities(bhyveConnPtr driver ATTRIBUTE_NONNULL) Pushed under the build breaker rule. --- diff --git a/src/bhyve/bhyve_driver.c b/src/bhyve/bhyve_driver.c index a5b349a862..e48528f475 100644 --- a/src/bhyve/bhyve_driver.c +++ b/src/bhyve/bhyve_driver.c @@ -123,8 +123,8 @@ bhyveAutostartDomains(bhyveConnPtr driver) * * Returns: a reference to a virCapsPtr instance or NULL */ -static virCapsPtr -bhyveDriverGetCapabilities(bhyveConnPtr driver ATTRIBUTE_NONNULL) +static virCapsPtr ATTRIBUTE_NONNULL(1) +bhyveDriverGetCapabilities(bhyveConnPtr driver) { return virObjectRef(driver->caps);