Skip to content

Commit a561710

Browse files
John DoeJohn Doe
John Doe
authored and
John Doe
committed
remove redeclaration
1 parent f8895d1 commit a561710

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

tools/sdk/include/ip_addr.h

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,11 @@ struct ip_addr {
1010
typedef struct ip_addr ip_addr_t;
1111

1212
struct ip_info {
13-
struct ip_addr ip;
14-
struct ip_addr netmask;
15-
struct ip_addr gw;
13+
ip_addr_t ip;
14+
ip_addr_t netmask;
15+
ip_addr_t gw;
1616
};
1717

18-
#define IP4_ADDR(ipaddr, a,b,c,d) \
19-
(ipaddr)->addr = ((uint32)((d) & 0xff) << 24) | \
20-
((uint32)((c) & 0xff) << 16) | \
21-
((uint32)((b) & 0xff) << 8) | \
22-
(uint32)((a) & 0xff)
23-
2418
/**
2519
* Determine if two address are on the same network.
2620
*

0 commit comments

Comments
 (0)