summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
authorSebastian Benoit <benno@cvs.openbsd.org>2017-08-10 15:44:10 +0000
committerSebastian Benoit <benno@cvs.openbsd.org>2017-08-10 15:44:10 +0000
commiteffcd0ddc20d920e45dca518c1d95ee8349c98ae (patch)
treecd0bf6406e50765c5f813a32d5038bd25d3f4647 /usr.sbin/bgpd
parent469110a5c24359ca1bac6538904410e586b2d61b (diff)
Fix a comment and line length. Noted by Dennis fondras.
ok benno@
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r--usr.sbin/bgpd/rde.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c
index a572a8e18b7..0ad81ac8512 100644
--- a/usr.sbin/bgpd/rde.c
+++ b/usr.sbin/bgpd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.369 2017/08/10 14:12:34 benno Exp $ */
+/* $OpenBSD: rde.c,v 1.370 2017/08/10 15:44:09 benno Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -213,11 +213,11 @@ rde_main(int debug, int verbose)
signal(SIGALRM, SIG_IGN);
signal(SIGUSR1, SIG_IGN);
- /* initialize the RIB structures */
if ((ibuf_main = malloc(sizeof(struct imsgbuf))) == NULL)
fatal(NULL);
imsg_init(ibuf_main, 3);
+ /* initialize the RIB structures */
pt_init();
path_init(pathhashsize);
aspath_init(pathhashsize);
@@ -1169,7 +1169,8 @@ rde_update_dispatch(struct imsg *imsg)
if (peer->conf.max_prefix &&
peer->prefix_cnt > peer->conf.max_prefix) {
log_peer_warnx(&peer->conf, "prefix limit reached"
- " (>%u/%u)", peer->prefix_cnt, peer->conf.max_prefix);
+ " (>%u/%u)", peer->prefix_cnt,
+ peer->conf.max_prefix);
rde_update_err(peer, ERR_CEASE, ERR_CEASE_MAX_PREFIX,
NULL, 0);
goto done;