From 83b052562096830b024aff830469086b1ec933d1 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Thu, 14 Dec 2017 17:10:02 +0000 Subject: [PATCH] firewall_rules(ui): fix 'ptype' was marked unused but was used [-Wused-but-marked-unused] Change-Id: Iadc3717cdbdbde8d863ed822ef3ad29256e099f0 Reviewed-on: https://code.wireshark.org/review/24824 Reviewed-by: Anders Broman --- ui/firewall_rules.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/firewall_rules.c b/ui/firewall_rules.c index a2b8d104f0..079abd885e 100644 --- a/ui/firewall_rules.c +++ b/ui/firewall_rules.c @@ -213,7 +213,7 @@ static void sf_ios_ext_port(GString *rtxt, gchar *addr _U_, guint32 port, port_t IOS_DENY, RT_TCP_UDP, port); } -static void sf_ipfilter_port(GString *rtxt, gchar *addr _U_, guint32 port, port_type ptype _U_, gboolean inbound, gboolean deny) { +static void sf_ipfilter_port(GString *rtxt, gchar *addr _U_, guint32 port, port_type ptype, gboolean inbound, gboolean deny) { g_string_append_printf(rtxt, "%s %s on le0 proto %s from any to any port = %u", IPFILTER_DENY, IPFILTER_IN, RT_TCP_UDP, port); } @@ -241,7 +241,7 @@ static void sf_netsh_port(GString *rtxt, gchar *addr _U_, guint32 port, port_typ } /* IPv4 + port */ -static void sf_ios_ext_ipv4_port(GString *rtxt, gchar *addr, guint32 port _U_, port_type ptype _U_, gboolean inbound, gboolean deny) { +static void sf_ios_ext_ipv4_port(GString *rtxt, gchar *addr, guint32 port _U_, port_type ptype, gboolean inbound, gboolean deny) { if (inbound) g_string_append_printf(rtxt, "access-list NUMBER %s %s host %s any eq %u", IOS_DENY, RT_TCP_UDP, addr, port); else