]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virnetdevvportprofile: Drop explicit enum virNetDevVPortProfile declaration
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 23 Jul 2025 10:57:18 +0000 (12:57 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 1 Aug 2025 10:24:20 +0000 (12:24 +0200)
commit425ffa3cd52cc44199a5c5f6d77878e4488ee76d
treecb07fd992c9c24de248d4c2c7937a98acf16aa31
parent4e19e73bcde9c152f0ac0ee5a774ce7a37656280
virnetdevvportprofile: Drop explicit enum virNetDevVPortProfile declaration

The virNetDevVPortProfile enum is both explicitly declared and
also typedef-ed. This repetition is redundant. Just use typedef.
To make matters worse, there's another type with the same name,
but because in the code, those few places used 'enum
virNetDevVPortProfile var;' to declare variables compilers didn't
complain.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/netdev_vport_profile_conf.c
src/util/virnetdevvportprofile.c
src/util/virnetdevvportprofile.h