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:
parent
9e96e71594
commit
946a135c58
|
|
@ -68,7 +68,6 @@ done:
|
||||||
}
|
}
|
||||||
|
|
||||||
struct m_pedit_util p_pedit_eth = {
|
struct m_pedit_util p_pedit_eth = {
|
||||||
NULL,
|
.id = "eth",
|
||||||
"eth",
|
.parse_peopt = parse_eth,
|
||||||
parse_eth,
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,6 @@ done:
|
||||||
}
|
}
|
||||||
|
|
||||||
struct m_pedit_util p_pedit_icmp = {
|
struct m_pedit_util p_pedit_icmp = {
|
||||||
NULL,
|
.id = "icmp",
|
||||||
"icmp",
|
.parse_peopt = parse_icmp,
|
||||||
parse_icmp,
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -156,7 +156,6 @@ done:
|
||||||
}
|
}
|
||||||
|
|
||||||
struct m_pedit_util p_pedit_ip = {
|
struct m_pedit_util p_pedit_ip = {
|
||||||
NULL,
|
.id = "ip",
|
||||||
"ip",
|
.parse_peopt = parse_ip,
|
||||||
parse_ip,
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -84,7 +84,6 @@ done:
|
||||||
}
|
}
|
||||||
|
|
||||||
struct m_pedit_util p_pedit_ip6 = {
|
struct m_pedit_util p_pedit_ip6 = {
|
||||||
NULL,
|
.id = "ipv6",
|
||||||
"ipv6",
|
.parse_peopt = parse_ip6,
|
||||||
parse_ip6,
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,6 @@ done:
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
struct m_pedit_util p_pedit_tcp = {
|
struct m_pedit_util p_pedit_tcp = {
|
||||||
NULL,
|
.id = "tcp",
|
||||||
"tcp",
|
.parse_peopt = parse_tcp,
|
||||||
parse_tcp,
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,6 @@ done:
|
||||||
}
|
}
|
||||||
|
|
||||||
struct m_pedit_util p_pedit_udp = {
|
struct m_pedit_util p_pedit_udp = {
|
||||||
NULL,
|
.id = "udp",
|
||||||
"udp",
|
.parse_peopt = parse_udp,
|
||||||
parse_udp,
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue