summaryrefslogtreecommitdiff
path: root/sbin/pfctl/pfctl_altq.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-11-18 23:13:33 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-11-18 23:13:33 +0000
commitf1febdc20fe5fc7b7e503966efb5394de13d6a69 (patch)
treeb5ba3267db956727b8ad04b29440f00fd076cfc4 /sbin/pfctl/pfctl_altq.c
parent0ae7519d719d959a6a6126e93044ceab3da3dc12 (diff)
KNF
Diffstat (limited to 'sbin/pfctl/pfctl_altq.c')
-rw-r--r--sbin/pfctl/pfctl_altq.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/pfctl/pfctl_altq.c b/sbin/pfctl/pfctl_altq.c
index 624376d6d04..7b7f30fb642 100644
--- a/sbin/pfctl/pfctl_altq.c
+++ b/sbin/pfctl/pfctl_altq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_altq.c,v 1.2 2002/11/18 22:55:39 deraadt Exp $ */
+/* $OpenBSD: pfctl_altq.c,v 1.3 2002/11/18 23:13:32 deraadt Exp $ */
/*
* Copyright (C) 2002
* Sony Computer Science Laboratories Inc. All rights reserved.
@@ -73,8 +73,8 @@ pfaltq_free(struct pf_altq *a)
struct pf_altq *altq;
TAILQ_FOREACH(altq, &altqs, entries) {
- if (strncmp(a->ifname, altq->ifname, IFNAMSIZ) == 0
- && strncmp(a->qname, altq->qname, PF_QNAME_SIZE) == 0) {
+ if (strncmp(a->ifname, altq->ifname, IFNAMSIZ) == 0 &&
+ strncmp(a->qname, altq->qname, PF_QNAME_SIZE) == 0) {
TAILQ_REMOVE(&altqs, altq, entries);
free(altq);
return;
@@ -88,8 +88,8 @@ pfaltq_lookup(const char *ifname)
struct pf_altq *altq;
TAILQ_FOREACH(altq, &altqs, entries) {
- if (strncmp(ifname, altq->ifname, IFNAMSIZ) == 0
- && altq->qname[0] == 0)
+ if (strncmp(ifname, altq->ifname, IFNAMSIZ) == 0 &&
+ altq->qname[0] == 0)
return (altq);
}
return (NULL);