]> xenbits.xensource.com Git - libvirt.git/commitdiff
conf: Remove NONNULL(1,2) for virNetDevBandwidthFormat
authorJohn Ferlan <jferlan@redhat.com>
Tue, 21 Mar 2017 17:22:23 +0000 (13:22 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 22 Mar 2017 17:49:59 +0000 (13:49 -0400)
Since the code checks and handles NULL parameters, remove the NONNULL
from the prototype.

Also fix the comment in the source to reference the right name.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/conf/netdev_bandwidth_conf.c
src/conf/netdev_bandwidth_conf.h

index 882433281d33cb59157f5c9b25c17c5aa899ad14..50138fd29fa6c0b50606ff6ddc247ba3a7e3be55 100644 (file)
@@ -241,7 +241,7 @@ virNetDevBandwidthRateFormat(virNetDevBandwidthRatePtr def,
 }
 
 /**
- * virNetDevBandwidthDefFormat:
+ * virNetDevBandwidthFormat:
  * @def: Data source
  * @buf: Buffer to print to
  *
index c68742798ccb8809eac961ccb89e59101c032c6f..30f988953cfd3c1f23b74c725d4291bd0300bb93 100644 (file)
@@ -34,8 +34,7 @@ int virNetDevBandwidthParse(virNetDevBandwidthPtr *bandwidth,
                             int net_type)
     ATTRIBUTE_NONNULL(1) ATTRIBUTE_RETURN_CHECK;
 int virNetDevBandwidthFormat(virNetDevBandwidthPtr def,
-                             virBufferPtr buf)
-    ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
+                             virBufferPtr buf);
 
 void virDomainClearNetBandwidth(virDomainObjPtr vm)
     ATTRIBUTE_NONNULL(1);