Re: bgpctl fmt_timeframe cleanup

2022-06-23 Thread Theo Buehler
On Thu, Jun 23, 2022 at 12:53:37PM +0200, Claudio Jeker wrote: > Newer gcc likes to bitch about snprintf buffers being to small for > insane numbers. This made me look at fmt_timeframe() and I decided to > clean it up a bit. It also likes to throw colorful fits about uninitialized variables... >

bgpctl fmt_timeframe cleanup

2022-06-23 Thread Claudio Jeker
Newer gcc likes to bitch about snprintf buffers being to small for insane numbers. This made me look at fmt_timeframe() and I decided to clean it up a bit. First of all the ring buffer is not needed. fmt_timeframe() is never used multiple time in a single printf() call. So drop that. Then make sur