[pisa-src] r1637 - trunk/libpisa/global.h

  • From: Thomas Jansen <mithi@xxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Wed, 11 Nov 2009 12:30:22 +0100

Author: tjansen
Date: Wed Nov 11 12:30:21 2009
New Revision: 1637

Log:
Replaced IFNAMSIZ with IF_NAMESIZE.

Both are equivalent, but only the latter is defined without requiring
__USE_MISC.

Modified:
   trunk/libpisa/global.h

Modified: trunk/libpisa/global.h
==============================================================================
--- trunk/libpisa/global.h      Wed Nov 11 12:19:17 2009        (r1636)
+++ trunk/libpisa/global.h      Wed Nov 11 12:30:21 2009        (r1637)
@@ -20,7 +20,7 @@
 #include <stdint.h>    /* uint*_t */
 #include <string.h>    /* memcpy */
 #include <openssl/sha.h>
-#include <net/if.h>    /* IFNAMSIZ */
+#include <net/if.h>    /* IF_NAMESIZE */
 #include <arpa/inet.h> /* struct in_addr */
 #include <assert.h>
 
@@ -63,7 +63,7 @@
 /**
  * Maximum length of a network interface name
  */
-#define MAX_IFNAME     IFNAMSIZ
+#define MAX_IFNAME     IF_NAMESIZE
 
 /**
  * Maximum length of a MAC address

Other related posts:

  • » [pisa-src] r1637 - trunk/libpisa/global.h - Thomas Jansen