summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/bgpd.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2019-05-08 18:48:35 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2019-05-08 18:48:35 +0000
commitbb68a2ed84e3d065376dddac4cf6db315412ab3c (patch)
treee79bce9478c010c0d1bc6c49b9129e712a8356be /usr.sbin/bgpd/bgpd.c
parent2cec499fb4c1a34fff1e68823e709bae8cf8405b (diff)
when passing objects to imsg use the for 'obj, sizeof(*obj)' instead of
'obj, sizeof(struct object)' OK benno@
Diffstat (limited to 'usr.sbin/bgpd/bgpd.c')
-rw-r--r--usr.sbin/bgpd/bgpd.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/bgpd/bgpd.c b/usr.sbin/bgpd/bgpd.c
index 31c35bca2ec..e61981a156d 100644
--- a/usr.sbin/bgpd/bgpd.c
+++ b/usr.sbin/bgpd/bgpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpd.c,v 1.216 2019/05/08 12:41:55 claudio Exp $ */
+/* $OpenBSD: bgpd.c,v 1.217 2019/05/08 18:48:34 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -500,15 +500,15 @@ reconfigure(char *conffile, struct bgpd_config *conf)
/* start reconfiguration */
if (imsg_compose(ibuf_se, IMSG_RECONF_CONF, 0, 0, -1,
- conf, sizeof(struct bgpd_config)) == -1)
+ conf, sizeof(*conf)) == -1)
return (-1);
if (imsg_compose(ibuf_rde, IMSG_RECONF_CONF, 0, 0, -1,
- conf, sizeof(struct bgpd_config)) == -1)
+ conf, sizeof(*conf)) == -1)
return (-1);
TAILQ_FOREACH(la, conf->listen_addrs, entry) {
if (imsg_compose(ibuf_se, IMSG_RECONF_LISTENER, 0, 0, la->fd,
- la, sizeof(struct listen_addr)) == -1)
+ la, sizeof(*la)) == -1)
return (-1);
la->fd = -1;
}
@@ -526,7 +526,7 @@ reconfigure(char *conffile, struct bgpd_config *conf)
return (-1);
}
if (imsg_compose(ibuf_rde, IMSG_RECONF_RIB, 0, 0, -1,
- rr, sizeof(struct rde_rib)) == -1)
+ rr, sizeof(*rr)) == -1)
return (-1);
free(rr);
}
@@ -534,7 +534,7 @@ reconfigure(char *conffile, struct bgpd_config *conf)
/* send peer list to the SE */
TAILQ_FOREACH(p, &conf->peers, entry) {
if (imsg_compose(ibuf_se, IMSG_RECONF_PEER, p->conf.id, 0, -1,
- &p->conf, sizeof(struct peer_config)) == -1)
+ &p->conf, sizeof(p->conf)) == -1)
return (-1);
if (p->reconf_action == RECONF_REINIT)