From: Sascha Wildner Date: Fri, 9 Dec 2011 18:53:53 +0000 (+0100) Subject: pfctl(8): Add missing braces. X-Git-Tag: v3.0.0~428 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/2b39f36f65137b77c8da095419905345a17cdc5b pfctl(8): Add missing braces. --- diff --git a/usr.sbin/pfctl/pfctl_altq.c b/usr.sbin/pfctl/pfctl_altq.c index d4b1ad7034..de21e33055 100644 --- a/usr.sbin/pfctl/pfctl_altq.c +++ b/usr.sbin/pfctl/pfctl_altq.c @@ -471,12 +471,13 @@ cbq_compute_idletime(struct pfctl *pf, struct pf_altq *pa) * this causes integer overflow in kernel! * (bandwidth < 6Kbps when max_pkt_size=1500) */ - if (pa->bandwidth != 0 && (pf->opts & PF_OPT_QUIET) == 0) + if (pa->bandwidth != 0 && (pf->opts & PF_OPT_QUIET) == 0) { warnx("queue bandwidth must be larger than %s", rate2str(ifnsPerByte * (double)opts->maxpktsize / (double)INT_MAX * (double)pa->ifbandwidth)); fprintf(stderr, "cbq: queue %s is too slow!\n", pa->qname); + } nsPerByte = (double)(INT_MAX / opts->maxpktsize); }