ip link: fix mismatched enums in vlan_parse_opt(), closes 11631
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 22 Jan 2019 09:07:50 +0000 (10:07 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 14 Feb 2019 13:40:57 +0000 (14:40 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/libiproute/iplink.c

index 9c164a71d904ab7167995672eca542a361157390..883a1f14afd1d5f3265fab0e4df6aa8bc3f25ffb 100644 (file)
@@ -490,11 +490,11 @@ static void vlan_parse_opt(char **argv, struct nlmsghdr *n, unsigned int size)
        ;
        enum {
                ARG_id = 0,
+               ARG_protocol,
                ARG_reorder_hdr,
                ARG_gvrp,
                ARG_mvrp,
                ARG_loose_binding,
-               ARG_protocol,
        };
        enum {
                PROTO_8021Q = 0,