From: job Date: Wed, 19 Apr 2023 19:26:26 +0000 (+0000) Subject: Fix missing whitespace in bgpd(8) output X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6a90d08caebd5b86d780e18dbd342d3fe73cb1a0;p=openbsd Fix missing whitespace in bgpd(8) output --- diff --git a/regress/usr.sbin/rpki-client/aspa/d6915eb78c75cab0bc46b48568232ec971819eab2b0009060c463f636bd7c204.asa b/regress/usr.sbin/rpki-client/aspa/d6915eb78c75cab0bc46b48568232ec971819eab2b0009060c463f636bd7c204.asa new file mode 100644 index 00000000000..30a08a917a7 Binary files /dev/null and b/regress/usr.sbin/rpki-client/aspa/d6915eb78c75cab0bc46b48568232ec971819eab2b0009060c463f636bd7c204.asa differ diff --git a/usr.sbin/rpki-client/output-bgpd.c b/usr.sbin/rpki-client/output-bgpd.c index eddd1cea6d6..5709ec77fb3 100644 --- a/usr.sbin/rpki-client/output-bgpd.c +++ b/usr.sbin/rpki-client/output-bgpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: output-bgpd.c,v 1.26 2023/01/20 15:42:34 claudio Exp $ */ +/* $OpenBSD: output-bgpd.c,v 1.27 2023/04/19 19:26:26 job Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons * @@ -67,11 +67,11 @@ output_bgpd(FILE *out, struct vrp_tree *vrps, struct brk_tree *brks, return -1; switch (vap->providers[i].afi) { case AFI_IPV4: - if (fprintf(out, "inet") < 0) + if (fprintf(out, " inet") < 0) return -1; break; case AFI_IPV6: - if (fprintf(out, "inet6") < 0) + if (fprintf(out, " inet6") < 0) return -1; break; }