summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c b/usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c
index c35f0db..d8206ca 100644
--- a/usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c
+++ b/usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c
@@ -1640,20 +1640,20 @@ err:
static int
altq_is_enabled(int pfdev)
{
- struct pfioc_altq pa;
+ struct pfioc_altq pa;
errno = 0;
- if (ioctl(pfdev, DIOCGETALTQS, &pa)) {
- if (errno == ENODEV) {
+ if (ioctl(pfdev, DIOCGETALTQS, &pa)) {
+ if (errno == ENODEV) {
syslog(LOG_INFO, "No ALTQ support in kernel\n"
"ALTQ related functions disabled\n");
- return (0);
- } else
- syslog(LOG_ERR, "DIOCGETALTQS returned an error: %s",
+ return (0);
+ } else
+ syslog(LOG_ERR, "DIOCGETALTQS returned an error: %s",
strerror(errno));
return (-1);
- }
- return (1);
+ }
+ return (1);
}
/*
OpenPOWER on IntegriCloud