[haiku-commits] Re: haiku: hrev45687 - src/kits/network

  • From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 15 May 2013 14:31:51 +0200 (CEST)

> On May 15, 2013 at 8:41 AM philippe.houdoin@xxxxxxxxx wrote:
> +          if (ioctl(socket.FD(), SIOCGIFINDEX, &request,
> +                  sizeof(struct ifreq)) >= 0) {
> +                  interfaceArray[i].if_index = request.ifr_index;

Thanks! This looks like a coding style issue, though: the sizeof() needs to be
indented one tab further than the line below, as it's not part of the 'if' but
an argument of ioctl().

Bye,
   Axel.

Other related posts: