diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2010-04-26 12:25:07 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2010-04-26 12:25:07 +0000 |
commit | 338f7128c342120350700fb58d293d0a3b70465d (patch) | |
tree | 6d091fb8a47a69daf931ebe5bc54f12ade315f7d /usr.sbin/bgpd | |
parent | bf1f63d7ad7b6b672a6c98d6f1090c6493a91424 (diff) |
Add some { } for better readability and to make the code look like the
other blocks in this function.
Diffstat (limited to 'usr.sbin/bgpd')
-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, |