The first parameter is named oneline, shadowing the global of the same
name declared in utils.h. Rename it to on.
No functional change; the body already assigned the parameter.
Signed-off-by: Stephen Hemminger <step…@networkplumber.org>
---
ip/ip_common.h | 2 +-
ip/ipaddress.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/ip/ip_common.h b/ip/ip_common.h
index 3f55ea33..52b998cf 100644
--- a/ip/ip_common.h
+++ b/ip/ip_common.h
@@ -46,7 +46,7 @@ void iplink_types_usage(void);
void iproute_reset_filter(int ifindex);
void ipmroute_reset_filter(int ifindex);
-void ipaddr_reset_filter(int oneline, int ifindex);
+void ipaddr_reset_filter(int on, int ifindex);
void ipneigh_reset_filter(int ifindex);
void ipnetconf_reset_filter(int ifindex);
diff --git a/ip/ipaddress.c b/ip/ipaddress.c
index fb9c05ee..976fe83c 100644
--- a/ip/ipaddress.c
+++ b/ip/ipaddress.c
@@ -2447,10 +2447,10 @@ int ipaddr_list_link(int argc, char **argv)
return ipaddr_list_flush_or_save(argc, argv, IPADD_LIST);
}
-void ipaddr_reset_filter(int oneline, int ifindex)
+void ipaddr_reset_filter(int on, int ifindex)
{
memset(&filter, 0, sizeof(filter));
- filter.oneline = oneline;
+ filter.oneline = on;
filter.ifindex = ifindex;
filter.group = -1;
}
--
2.53.0