Re: ip6_sprintf patch

2006-12-13 Thread Bjoern A. Zeeb
On Tue, 12 Dec 2006, Max Laier wrote: On Tuesday 12 December 2006 13:22, Bjoern A. Zeeb wrote: + } + *cp = digits[*d & 0xf]; + if (zero == 0 || (*cp != '0')) + cp++; This last if is redundant as we check for "(u_int16_t)0" at

Re: ip6_sprintf patch

2006-12-12 Thread Max Laier
On Tuesday 12 December 2006 13:22, Bjoern A. Zeeb wrote: > Hi, > > I have a patch sitting around for quite some time that I'd like to > commit if noone has any objections. It tries to print the addresses > in a more common/readable format eliminating leading zeros like > in :0001 -> :1. > > You can

ip6_sprintf patch

2006-12-12 Thread Bjoern A. Zeeb
Hi, I have a patch sitting around for quite some time that I'd like to commit if noone has any objections. It tries to print the addresses in a more common/readable format eliminating leading zeros like in :0001 -> :1. You can also fetch it from here: http://sources.zabbadoz.net/freebsd/ipv6/pat