summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2002-11-19 17:41:19 +0000
committerhenning <henning@openbsd.org>2002-11-19 17:41:19 +0000
commita85811adcfbe3ef47b301a88d34c8bea70afb91e (patch)
tree018198e740500f6bf02a777e6681bfc0ddf1551f
parentaltq interface spec should be printed as altq interface spec, not queue (diff)
downloadwireguard-openbsd-a85811adcfbe3ef47b301a88d34c8bea70afb91e.tar.xz
wireguard-openbsd-a85811adcfbe3ef47b301a88d34c8bea70afb91e.zip
altq ifspec is always level 0
-rw-r--r--sbin/pfctl/pfctl_altq.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sbin/pfctl/pfctl_altq.c b/sbin/pfctl/pfctl_altq.c
index 833a7a70307..b1ceb3df586 100644
--- a/sbin/pfctl/pfctl_altq.c
+++ b/sbin/pfctl/pfctl_altq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_altq.c,v 1.5 2002/11/19 17:37:39 henning Exp $ */
+/* $OpenBSD: pfctl_altq.c,v 1.6 2002/11/19 17:41:19 henning Exp $ */
/*
* Copyright (C) 2002
* Sony Computer Science Laboratories Inc. All rights reserved.
@@ -137,15 +137,11 @@ qid_to_qname(u_int32_t qid, const char *ifname)
void
print_altq(const struct pf_altq *a, unsigned level)
{
- unsigned i;
-
if (a->qname[0] != NULL) {
print_queue(a, level);
return;
}
- for (i = 0; i < level; ++i)
- printf(" ");
printf("altq on %s scheduler %u bandwidth %s tbrsize %u",
a->ifname, a->scheduler, rate2str((double)a->ifbandwidth),
a->tbrsize);