From a5617106776184696797d354a2a43237c7068713 Mon Sep 17 00:00:00 2001 From: John Doe Date: Fri, 26 Jun 2015 12:44:48 +0300 Subject: [PATCH] remove redeclaration --- tools/sdk/include/ip_addr.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/tools/sdk/include/ip_addr.h b/tools/sdk/include/ip_addr.h index fc488ea8f..74ea7a2b2 100644 --- a/tools/sdk/include/ip_addr.h +++ b/tools/sdk/include/ip_addr.h @@ -10,17 +10,11 @@ struct ip_addr { typedef struct ip_addr ip_addr_t; struct ip_info { - struct ip_addr ip; - struct ip_addr netmask; - struct ip_addr gw; + ip_addr_t ip; + ip_addr_t netmask; + ip_addr_t gw; }; -#define IP4_ADDR(ipaddr, a,b,c,d) \ - (ipaddr)->addr = ((uint32)((d) & 0xff) << 24) | \ - ((uint32)((c) & 0xff) << 16) | \ - ((uint32)((b) & 0xff) << 8) | \ - (uint32)((a) & 0xff) - /** * Determine if two address are on the same network. *