diff options
| author | David Lamparter <equinox@diac24.net> | 2021-03-20 09:02:04 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@diac24.net> | 2021-03-30 22:32:55 +0200 |
| commit | 3ea794305960ed9fca230c3e0f8b1b73c2915101 (patch) | |
| tree | 3c964bf671b0d98839ef158a2eadfd51606e4dbe /lib/srcdest_table.c | |
| parent | 487eefcfbec8a24d639e6b8c805540d5c1fe38e8 (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 'lib/srcdest_table.c')
| -rw-r--r-- | lib/srcdest_table.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/srcdest_table.c b/lib/srcdest_table.c index b2422ba460..d2e0682e95 100644 --- a/lib/srcdest_table.c +++ b/lib/srcdest_table.c @@ -307,8 +307,8 @@ const char *srcdest_rnode2str(const struct route_node *rn, char *str, int size) } printfrr_ext_autoreg_p("RN", printfrr_rn) -static ssize_t printfrr_rn(struct fbuf *buf, const char **fmt, - int prec, const void *ptr) +static ssize_t printfrr_rn(struct fbuf *buf, struct printfrr_eargs *ea, + const void *ptr) { const struct route_node *rn = ptr; const struct prefix *dst_p, *src_p; |
