summaryrefslogtreecommitdiff
path: root/bgpd/bgp_table.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2021-03-20 09:02:04 +0100
committerDavid Lamparter <equinox@diac24.net>2021-03-30 22:32:55 +0200
commit3ea794305960ed9fca230c3e0f8b1b73c2915101 (patch)
tree3c964bf671b0d98839ef158a2eadfd51606e4dbe /bgpd/bgp_table.c
parent487eefcfbec8a24d639e6b8c805540d5c1fe38e8 (diff)
lib: put printfrr extension args into struct
... for easier extensibility. Add width, # and - flags while at it. Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'bgpd/bgp_table.c')
-rw-r--r--bgpd/bgp_table.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_table.c b/bgpd/bgp_table.c
index d6dd03e2ac..833bdec2ed 100644
--- a/bgpd/bgp_table.c
+++ b/bgpd/bgp_table.c
@@ -201,8 +201,8 @@ struct bgp_node *bgp_table_subtree_lookup(const struct bgp_table *table,
}
printfrr_ext_autoreg_p("BD", printfrr_bd)
-static ssize_t printfrr_bd(struct fbuf *buf, const char **fmt,
- int prec, const void *ptr)
+static ssize_t printfrr_bd(struct fbuf *buf, struct printfrr_eargs *ea,
+ const void *ptr)
{
const struct bgp_dest *dest = ptr;
const struct prefix *p = bgp_dest_get_prefix(dest);