diff options
author | 2010-04-26 12:25:06 +0000 | |
---|---|---|
committer | 2010-04-26 12:25:06 +0000 | |
commit | 3acee1410db5fd81922aae7ce44bd5ee3fa56a10 (patch) | |
tree | 7737854104c81aa3b5e29045d478c0e8a2f95a23 | |
parent | don't throw away exit status of various commands; ok sthen@ dcoppa@ halex@ (diff) | |
download | wireguard-openbsd-3acee1410db5fd81922aae7ce44bd5ee3fa56a10.tar.xz wireguard-openbsd-3acee1410db5fd81922aae7ce44bd5ee3fa56a10.zip |
Add some { } for better readability and to make the code look like the
other blocks in this function.
-rw-r--r-- | usr.sbin/bgpd/bgpd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/bgpd.c b/usr.sbin/bgpd/bgpd.c index f6227c98f7a..27523f4c257 100644 --- a/usr.sbin/bgpd/bgpd.c +++ b/usr.sbin/bgpd/bgpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpd.c,v 1.159 2010/04/26 08:46:31 claudio Exp $ */ +/* $OpenBSD: bgpd.c,v 1.160 2010/04/26 12:25:06 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -454,10 +454,11 @@ reconfigure(char *conffile, struct bgpd_config *conf, struct mrt_head *mrt_l, return (-1); /* send peer list and listeners to the SE */ - for (p = *peer_l; p != NULL; p = p->next) + for (p = *peer_l; p != NULL; p = p->next) { if (imsg_compose(ibuf_se, IMSG_RECONF_PEER, p->conf.id, 0, -1, &p->conf, sizeof(struct peer_config)) == -1) return (-1); + } TAILQ_FOREACH(la, conf->listen_addrs, entry) { if (imsg_compose(ibuf_se, IMSG_RECONF_LISTENER, 0, 0, la->fd, |