diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2020-04-20 17:59:31 -0400 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2020-04-20 19:14:33 -0400 |
| commit | fc746f1c01daf34600d83293647199e81fcb8316 (patch) | |
| tree | f26168f502d6b5faaffff8c7945acbb88c885fa1 /bgpd/bgp_dump.c | |
| parent | 772270f3b6a37a2dd9432541cce436e9b45bb6b9 (diff) | |
*: manually remove some more sprintf
Take care of some more complicated cases by hand
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_dump.c')
| -rw-r--r-- | bgpd/bgp_dump.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/bgpd/bgp_dump.c b/bgpd/bgp_dump.c index 9af90dbf26..c87849ad71 100644 --- a/bgpd/bgp_dump.c +++ b/bgpd/bgp_dump.c @@ -787,32 +787,6 @@ static struct cmd_node bgp_dump_node = { .config_write = config_write_bgp_dump, }; -#if 0 -char * -config_time2str (unsigned int interval) -{ - static char buf[BUFSIZ]; - - buf[0] = '\0'; - - if (interval / 3600) - { - sprintf (buf, "%dh", interval / 3600); - interval %= 3600; - } - if (interval / 60) - { - sprintf (buf + strlen (buf), "%dm", interval /60); - interval %= 60; - } - if (interval) - { - sprintf (buf + strlen (buf), "%d", interval); - } - return buf; -} -#endif - static int config_write_bgp_dump(struct vty *vty) { if (bgp_dump_all.filename) { |
