[haiku-commits] r39746 - haiku/trunk/headers/posix/net

Author: phoudoin
Date: 2010-12-06 12:33:00 +0100 (Mon, 06 Dec 2010)
New Revision: 39746
Changeset: http://dev.haiku-os.org/changeset/39746

Modified:
   haiku/trunk/headers/posix/net/if.h
Log:
Fix _SIZEOF_ADDR_IFREQ() macro definition: there is no ifreq type.


Modified: haiku/trunk/headers/posix/net/if.h
===================================================================
--- haiku/trunk/headers/posix/net/if.h  2010-12-05 19:33:16 UTC (rev 39745)
+++ haiku/trunk/headers/posix/net/if.h  2010-12-06 11:33:00 UTC (rev 39746)
@@ -109,8 +109,8 @@
 /* Macro that returns the size of a single address within a SIOCGIFCONF buffer;
    it looks like this because of compatibility with other platforms. */
 #define _SIZEOF_ADDR_IFREQ(request) \
-       (IF_NAMESIZE + (request).ifr_addr.sa_len > (int)sizeof(ifreq) \
-               ? IF_NAMESIZE + (request).ifr_addr.sa_len : sizeof(ifreq))
+       (IF_NAMESIZE + (request).ifr_addr.sa_len > (int)sizeof(struct ifreq) \
+               ? IF_NAMESIZE + (request).ifr_addr.sa_len : sizeof(struct 
ifreq))
 
 
 /* POSIX definitions follow */


Other related posts:

  • » [haiku-commits] r39746 - haiku/trunk/headers/posix/net - philippe . houdoin