tc/pedit: use structure initialization

The pedit callback structure table should be iniatialized using
structure initialization to avoid structure changes problems.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
Stephen Hemminger 2018-11-15 14:36:39 -08:00
parent 9e96e71594
commit 946a135c58
6 changed files with 12 additions and 18 deletions

View File

@ -68,7 +68,6 @@ done:
}
struct m_pedit_util p_pedit_eth = {
NULL,
"eth",
parse_eth,
.id = "eth",
.parse_peopt = parse_eth,
};

View File

@ -55,7 +55,6 @@ done:
}
struct m_pedit_util p_pedit_icmp = {
NULL,
"icmp",
parse_icmp,
.id = "icmp",
.parse_peopt = parse_icmp,
};

View File

@ -156,7 +156,6 @@ done:
}
struct m_pedit_util p_pedit_ip = {
NULL,
"ip",
parse_ip,
.id = "ip",
.parse_peopt = parse_ip,
};

View File

@ -84,7 +84,6 @@ done:
}
struct m_pedit_util p_pedit_ip6 = {
NULL,
"ipv6",
parse_ip6,
.id = "ipv6",
.parse_peopt = parse_ip6,
};

View File

@ -67,7 +67,6 @@ done:
return res;
}
struct m_pedit_util p_pedit_tcp = {
NULL,
"tcp",
parse_tcp,
.id = "tcp",
.parse_peopt = parse_tcp,
};

View File

@ -61,7 +61,6 @@ done:
}
struct m_pedit_util p_pedit_udp = {
NULL,
"udp",
parse_udp,
.id = "udp",
.parse_peopt = parse_udp,
};