From 6ccc2ef8043168e766ec74fed360ec0a8e2d8ded Mon Sep 17 00:00:00 2001 From: goldsimon Date: Tue, 15 Jun 2010 20:33:40 +0000 Subject: [PATCH] Removed leading underscore from struct name, added a comment --- src/include/ipv4/lwip/ip_addr.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/include/ipv4/lwip/ip_addr.h b/src/include/ipv4/lwip/ip_addr.h index 29f68c4b..4d3e38ad 100644 --- a/src/include/ipv4/lwip/ip_addr.h +++ b/src/include/ipv4/lwip/ip_addr.h @@ -51,7 +51,7 @@ struct ip_addr { # include "arch/bpstruct.h" #endif PACK_STRUCT_BEGIN -struct _ip_addr_packed { +struct ip_addr_packed { PACK_STRUCT_FIELD(u32_t addr); } PACK_STRUCT_STRUCT; PACK_STRUCT_END @@ -59,8 +59,10 @@ PACK_STRUCT_END # include "arch/epstruct.h" #endif +/** ip_addr_t uses a struct for convenience only, so that the same defines can + * operate both on ip_addr_t as well as on ip_addr_p_t. */ typedef struct ip_addr ip_addr_t; -typedef struct _ip_addr_packed ip_addr_p_t; +typedef struct ip_addr_packed ip_addr_p_t; /* * struct ipaddr2 is used in the definition of the ARP packet format in