miniupnpd/pf/obsdrdr.c: add UNUSED() when necessary
This commit is contained in:
parent
9d23b88cef
commit
5512d022ac
|
@ -353,6 +353,10 @@ add_filter_rule2(const char * ifname,
|
||||||
struct pfioc_pooladdr pp;
|
struct pfioc_pooladdr pp;
|
||||||
struct pf_pooladdr *a;
|
struct pf_pooladdr *a;
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef USE_IFNAME_IN_RULES
|
||||||
|
UNUSED(ifname);
|
||||||
|
#endif
|
||||||
|
UNUSED(eport);
|
||||||
if(dev<0) {
|
if(dev<0) {
|
||||||
syslog(LOG_ERR, "pf device is not open");
|
syslog(LOG_ERR, "pf device is not open");
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -663,6 +667,7 @@ priv_delete_filter_rule(const char * ifname, unsigned short iport,
|
||||||
#else
|
#else
|
||||||
int i, n;
|
int i, n;
|
||||||
struct pfioc_rule pr;
|
struct pfioc_rule pr;
|
||||||
|
UNUSED(ifname);
|
||||||
if(dev<0) {
|
if(dev<0) {
|
||||||
syslog(LOG_ERR, "pf device is not open");
|
syslog(LOG_ERR, "pf device is not open");
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue