mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +00:00
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:
parent
273e71e79a
commit
5b93aa57c9
@ -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
|
||||||
*
|
*
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user