[libvirt] [PATCH] util: make virNetDev(Get|Set)IFFlags() static
Eric Blake
eblake at redhat.com
Fri Jan 30 21:26:42 UTC 2015
On 01/30/2015 10:16 AM, Laine Stump wrote:
> e562a61a0739 added these two new helper functions and only used them
> within virnetdev.c, but declared them in the .h file. If some
> currently unsupported interface flags need to be accessed in the
> future, it will make more sense to write the appropriate higher level
> function rather than require us to artificially define IFF_* on some
> mythical platform that doesn't have SIOC[SG]IFFLAGS (and therefore
> doesn't have IFF_*) just so we can call virNetDevSetIFFFlags() to
> return an error.
>
> To help someone in not going down the wrong road, this patch makes the
> two helper functions static, hopefully making it less likely that
> someone will want to use them outside of virnetdev.c.
> ---
> src/util/virnetdev.c | 22 +++++++++++++---------
> src/util/virnetdev.h | 10 +---------
> 2 files changed, 14 insertions(+), 18 deletions(-)
ACK.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20150130/7b6a6f81/attachment-0001.sig>
More information about the libvir-list
mailing list