conf: Remove NONNULL(1,2) for virNetDevBandwidthFormat

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>
This commit is contained in:
John Ferlan 2017-03-21 13:22:23 -04:00
parent 273e71e79a
commit 5b93aa57c9
2 changed files with 2 additions and 3 deletions

View File

@ -241,7 +241,7 @@ virNetDevBandwidthRateFormat(virNetDevBandwidthRatePtr def,
} }
/** /**
* virNetDevBandwidthDefFormat: * virNetDevBandwidthFormat:
* @def: Data source * @def: Data source
* @buf: Buffer to print to * @buf: Buffer to print to
* *

View File

@ -34,8 +34,7 @@ int virNetDevBandwidthParse(virNetDevBandwidthPtr *bandwidth,
int net_type) int net_type)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_RETURN_CHECK; ATTRIBUTE_NONNULL(1) ATTRIBUTE_RETURN_CHECK;
int virNetDevBandwidthFormat(virNetDevBandwidthPtr def, int virNetDevBandwidthFormat(virNetDevBandwidthPtr def,
virBufferPtr buf) virBufferPtr buf);
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
void virDomainClearNetBandwidth(virDomainObjPtr vm) void virDomainClearNetBandwidth(virDomainObjPtr vm)
ATTRIBUTE_NONNULL(1); ATTRIBUTE_NONNULL(1);