summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbenno <benno@openbsd.org>2017-08-10 15:44:09 +0000
committerbenno <benno@openbsd.org>2017-08-10 15:44:09 +0000
commit0740a279bdadeb283a39f3fc9b961b02399ed18a (patch)
treee058658a50f310cec3988fd78c0115e0ab301493
parentFail if unknown type of an address family was specified (diff)
downloadwireguard-openbsd-0740a279bdadeb283a39f3fc9b961b02399ed18a.tar.xz
wireguard-openbsd-0740a279bdadeb283a39f3fc9b961b02399ed18a.zip
Fix a comment and line length. Noted by Dennis fondras.
ok benno@
-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;