From 60aa853f5d6f0458dbc157e9b5a56dc319403020 Mon Sep 17 00:00:00 2001 From: Eric Faurot Date: Sat, 6 Jun 2009 06:33:16 +0000 Subject: sync bgpd/bgpctl with the common imsg code, making it lib ready as well. ok claudio@ pyr@ --- usr.sbin/bgpctl/bgpctl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'usr.sbin/bgpctl/bgpctl.c') 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 @@ -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)); -- cgit v1.2.3