miniupnpd/pf/obsdrdr.c: add UNUSED() when necessary

This commit is contained in:
Thomas Bernard 2014-02-28 21:28:12 +01:00
parent 9d23b88cef
commit 5512d022ac
1 changed files with 5 additions and 0 deletions

View File

@ -353,6 +353,10 @@ add_filter_rule2(const char * ifname,
struct pfioc_pooladdr pp;
struct pf_pooladdr *a;
#endif
#ifndef USE_IFNAME_IN_RULES
UNUSED(ifname);
#endif
UNUSED(eport);
if(dev<0) {
syslog(LOG_ERR, "pf device is not open");
return -1;
@ -663,6 +667,7 @@ priv_delete_filter_rule(const char * ifname, unsigned short iport,
#else
int i, n;
struct pfioc_rule pr;
UNUSED(ifname);
if(dev<0) {
syslog(LOG_ERR, "pf device is not open");
return -1;