summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorAlexander Guy <alexander@cvs.openbsd.org>2004-06-22 07:58:20 +0000
committerAlexander Guy <alexander@cvs.openbsd.org>2004-06-22 07:58:20 +0000
commita6124400e7bb281fde8b9b389e477a0877dfa025 (patch)
tree00380c4c8a53651147f15d060b93f3ab37c233bb /usr.sbin
parent985cca8e136940af1765208cb18f184480f26fd7 (diff)
Precedence fix; ok henning@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpd/session.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c
index 35b22e6253f..00063c8aab8 100644
--- a/usr.sbin/bgpd/session.c
+++ b/usr.sbin/bgpd/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.179 2004/06/22 07:42:41 henning Exp $ */
+/* $OpenBSD: session.c,v 1.180 2004/06/22 07:58:19 alexander Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -289,7 +289,7 @@ session_main(struct bgpd_config *config, struct peer *cpeers,
if (peer_cnt > peer_l_elms ||
peer_cnt + 2 * PEER_L_RESERVE < peer_l_elms) {
if ((newp = realloc(peer_l, sizeof(struct peer *) *
- peer_cnt + PEER_L_RESERVE)) == NULL) {
+ (peer_cnt + PEER_L_RESERVE))) == NULL) {
/* panic for now */
log_warn("could not resize peer_l from %u -> %u"
" entries", peer_l_elms,
@@ -303,7 +303,7 @@ session_main(struct bgpd_config *config, struct peer *cpeers,
new_cnt =
PFD_LISTENERS_START + listener_cnt + peer_cnt + ctl_cnt;
if (new_cnt > pfd_elms ||
- new_cnt + 2 * PFD_RESERVE < pfd_elms) {
+ (new_cnt + 2) * PFD_RESERVE < pfd_elms) {
if ((newp = realloc(pfd, sizeof(struct pollfd) *
(new_cnt + PFD_RESERVE))) == NULL) {
/* panic for now */