diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2022-01-04 21:24:48 +0100 | 
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2022-01-17 14:02:18 +0100 | 
| commit | 98a81d2bffce9e5a80d0df35dfd0afff766dce0b (patch) | |
| tree | 6b891dc73ade524cb97365ed737543f513c28b18 /pimd/pim_str.c | |
| parent | 9bace5c2d389c7839ad3e949712728c938493e53 (diff) | |
pimd: remove pim_str_sg_dump()
... and replace with `%pSG` printfrr specifier.  This actually used a
static buffer in the formatting function, so subsequent formatting would
overwrite earlier uses.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_str.c')
| -rw-r--r-- | pimd/pim_str.c | 10 | 
1 files changed, 0 insertions, 10 deletions
diff --git a/pimd/pim_str.c b/pimd/pim_str.c index 1ec17cfab2..8744d62d14 100644 --- a/pimd/pim_str.c +++ b/pimd/pim_str.c @@ -41,13 +41,3 @@ void pim_addr_dump(const char *onfail, struct prefix *p, char *buf,  	errno = save_errno;  } - -char *pim_str_sg_dump(const pim_sgaddr *sg) -{ -	static char sg_str[PIM_SG_LEN]; - -	snprintfrr(sg_str, sizeof(sg_str), "%pSG", sg); - -	return sg_str; -} -  | 
