diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2020-04-20 23:59:31 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2020-04-21 01:14:33 +0200 |
commit | fc746f1c01daf34600d83293647199e81fcb8316 (patch) | |
tree | f26168f502d6b5faaffff8c7945acbb88c885fa1 /bgpd/bgp_dump.c | |
parent | *: sprintf -> snprintf (diff) | |
download | frr-fc746f1c01daf34600d83293647199e81fcb8316.tar.xz frr-fc746f1c01daf34600d83293647199e81fcb8316.zip |
*: 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 9af90dbf2..c87849ad7 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) { |