Move unpack lwip ip address macro to macros module.
[bertos.git] / boards / sam3x-ek / examples / sam3x-ek_http_server / main.c
index 4e6b492f6dc8a14a921164f55db69ad93e705163..30054db8778db960f46190e8b1a707b15f2d81bc 100644 (file)
 #include <stdio.h>
 #include <string.h>
 
-/* Macro to unpack the ip addres from lwip format in 4 int*/
-#define IP_ADDR_TO_INT_TUPLE(addr) \
-               (int)((addr) >>  0 & 0xff), \
-               (int)((addr) >>  8 & 0xff), \
-               (int)((addr) >> 16 & 0xff), \
-               (int)((addr) >> 24 & 0xff)
-
 /* Network interface global variables */
 static struct ip_addr ipaddr, netmask, gw;
 static struct netif netif;