Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Dec 2016 10:45:01 +0000 (UTC)
From:      Ngie Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r310913 - stable/10/usr.sbin/bsnmpd/modules/snmp_pf
Message-ID:  <201612311045.uBVAj13j032505@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Sat Dec 31 10:45:01 2016
New Revision: 310913
URL: https://svnweb.freebsd.org/changeset/base/310913

Log:
  MFstable/11 r310902:
  
  MFC r310669:
  
  style(9): clean up whitespace

Modified:
  stable/10/usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c
==============================================================================
--- stable/10/usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c	Sat Dec 31 10:43:32 2016	(r310912)
+++ stable/10/usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c	Sat Dec 31 10:45:01 2016	(r310913)
@@ -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);
 }
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612311045.uBVAj13j032505>