[PATCH 1/3] lib: Add ip6_common_octets function

Toke Høiland-Jørgensen toke at toke.dk
Tue Jun 6 13:00:38 CEST 2017


Christian Tacke <Christian.Tacke+bird.network.cz at 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... :)

-Toke



More information about the Bird-users mailing list