ipmroute: Prevent overlapping storage of `filter` global

This variable has the same name as `struct xfrm_filter filter` in
ip/ipxfrm.c, but overrides that definition since `struct rtfilter`
is larger.

This is visible when built with -Wl,--warn-common in LDFLAGS:

	/usr/bin/ld: ipxfrm.o: warning: common of `filter' overridden by larger common from ipmroute.o

Signed-off-by: Michael Forney <mforney@mforney.org>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
Michael Forney 2019-06-16 14:46:02 -07:00 committed by Stephen Hemminger
parent b0a09ace39
commit 578cadcc68
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ static void usage(void)
exit(-1);
}
struct rtfilter {
static struct rtfilter {
int tb;
int af;
int iif;