diff options
author | Eric Faurot <eric@cvs.openbsd.org> | 2009-06-06 06:33:16 +0000 |
---|---|---|
committer | Eric Faurot <eric@cvs.openbsd.org> | 2009-06-06 06:33:16 +0000 |
commit | 60aa853f5d6f0458dbc157e9b5a56dc319403020 (patch) | |
tree | 8f56bf0bf673cd5d3c9c9016e4cf2379af8447aa /usr.sbin/bgpctl/bgpctl.c | |
parent | dc98cbd0746ab1f8c660cf076bd1338bfc2b41b8 (diff) |
sync bgpd/bgpctl with the common imsg code, making it lib ready as well.
ok claudio@ pyr@
Diffstat (limited to 'usr.sbin/bgpctl/bgpctl.c')
-rw-r--r-- | usr.sbin/bgpctl/bgpctl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/bgpctl/bgpctl.c b/usr.sbin/bgpctl/bgpctl.c index d4cfb962c64..b11a072ff4a 100644 --- a/usr.sbin/bgpctl/bgpctl.c +++ b/usr.sbin/bgpctl/bgpctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpctl.c,v 1.141 2009/06/06 06:05:41 claudio Exp $ */ +/* $OpenBSD: bgpctl.c,v 1.142 2009/06/06 06:33:15 eric Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -174,8 +174,7 @@ main(int argc, char *argv[]) -1 || imsg_add(msg, &res->af, sizeof(res->af)) == -1) errx(1, "imsg_add failure"); - if (imsg_close(ibuf, msg) < 0) - errx(1, "imsg_close error"); + imsg_close(ibuf, msg); } else imsg_compose(ibuf, IMSG_CTL_KROUTE_ADDR, 0, 0, -1, &res->addr, sizeof(res->addr)); |