Ondrej Zajicek <santi...@crfreenet.org> writes:

> On Tue, Jun 06, 2017 at 01:00:38PM +0200, Toke Høiland-Jørgensen wrote:
>> Christian Tacke <christian.tacke+bird.network...@cosmokey.com> writes:
>> 
>> > Hi,
>> >
>> > just out of curiosity:
>> >
>> > On Mon, Jun 05, 2017 at 23:49:52 +0200, Toke Høiland-Jørgensen wrote:
>> > [...]
>> >> +int
>> >> +ip6_common_octets(ip6_addr a, ip6_addr b)
>> >> +{
>> >> +  int i, j, common = 0;
>> > [...]
>> >
>> > Why aren't you using an unsigned int here?
>> 
>> No particular reason; I suppose muscle memory kicked in and gave me an
>> 'int'. You are right, of course, that it should probably be uint... :)
>
> Well, beware of down-iteration in for():
>
>   for (j=3; j>=0; j--)
>
> That would not work with uint.

Right, but I was mostly referring to the return type. Anyway, that
function is not really needed anymore, since the new version of the
patch compares buffers instead; so guess you can drop that patch.

Will send v2 of the other patch along in a sec...

-Toke

Attachment: signature.asc
Description: PGP signature

Reply via email to