[libvirt] [PATCH] network: Remove extraneous ATTRIBUTE_NONNULL

John Ferlan jferlan at redhat.com
Tue Apr 5 09:48:25 UTC 2016


Commit id '3992ff14' added the prototype for networkGetActualType
with 1 parameter, but added 2 ATTRIBUTE_NONNULL's (assume from a
cut-n-paste), just remove (2).

Signed-off-by: John Ferlan <jferlan at redhat.com>
---
 Pushed as trivial and a build breaker for a coverity build.

 src/network/bridge_driver.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/network/bridge_driver.h b/src/network/bridge_driver.h
index f0cac5d..ff7f921 100644
--- a/src/network/bridge_driver.h
+++ b/src/network/bridge_driver.h
@@ -48,7 +48,7 @@ int networkGetNetworkAddress(const char *netname, char **netaddr)
     ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
 
 int networkGetActualType(virDomainNetDefPtr iface)
-    ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
+    ATTRIBUTE_NONNULL(1);
 
 int networkDnsmasqConfContents(virNetworkObjPtr network,
                         const char *pidfile,
-- 
2.5.5




More information about the libvir-list mailing list