aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2017-12-14 17:10:02 +0000
committerAnders Broman <a.broman58@gmail.com>2017-12-14 18:45:05 +0000
commit83b052562096830b024aff830469086b1ec933d1 (patch)
treeab930999e0e10b8f834822deda25c9eadee15fe7
parent11a948dd121f04448ff765ec36dafbf8e8415fb5 (diff)
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 <a.broman58@gmail.com>
-rw-r--r--ui/firewall_rules.c4
1 files 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