]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virNetDevMacVLanTapOpen: Slightly rework
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 4 Dec 2015 09:55:49 +0000 (10:55 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 11 Dec 2015 07:42:49 +0000 (08:42 +0100)
commit025a87065fa92b9e48e9ffbe0a1f065440f85a0e
treef7918c0502b5f942ecdeb658f8eec14028c88303
parent56e2171c6fee97d98241f9143da4fcd194c3633c
virNetDevMacVLanTapOpen: Slightly rework

There are few outdated things. Firstly, we don't need to undergo
the torture of fopen, fscanf and fclose just to get the interface
index when we have nice wrapper over that: virNetDevGetIndex.
Secondly, we don't need to have statically allocated buffer for
the path we are opening.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virnetdevmacvlan.c