diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2007-03-05 17:28:22 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2007-03-05 17:28:22 +0000 |
commit | 49a2c3314ad21618db2d1f92f77ec19b05e654a6 (patch) | |
tree | 69986c4aea0733d45b694dde72f9e511956cb5b4 /usr.sbin/bgpctl/irr_output.c | |
parent | 2aeaeb17838d109a8a54a6fb610e18a7460cc7ab (diff) |
KNF
Diffstat (limited to 'usr.sbin/bgpctl/irr_output.c')
-rw-r--r-- | usr.sbin/bgpctl/irr_output.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpctl/irr_output.c b/usr.sbin/bgpctl/irr_output.c index 301eccc2a8c..3b93c32b0c6 100644 --- a/usr.sbin/bgpctl/irr_output.c +++ b/usr.sbin/bgpctl/irr_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: irr_output.c,v 1.12 2007/03/05 15:02:05 henning Exp $ */ +/* $OpenBSD: irr_output.c,v 1.13 2007/03/05 17:28:21 henning Exp $ */ /* * Copyright (c) 2007 Henning Brauer <henning@openbsd.org> @@ -60,11 +60,11 @@ write_filters(char *outpath) errx(1, "router address \"%s\" contains" " illegal character \"%c\"", r->address, r->address[i]); - if(asprintf(&fn, "%s/bgpd-%s.filter", + if (asprintf(&fn, "%s/bgpd-%s.filter", outpath, r->address) == -1) err(1, "write_filters asprintf"); } else - if(asprintf(&fn, "%s/bgpd.filter", + if (asprintf(&fn, "%s/bgpd.filter", outpath) == -1) err(1, "write_filters asprintf"); |