Переглянути джерело

minor: macros should not end with underscore(s)

sg 9 роки тому
батько
коміт
a2fd68098e

+ 3 - 3
src/include/lwip/ip.h

@@ -34,8 +34,8 @@
  * Author: Adam Dunkels <adam@sics.se>
  *
  */
-#ifndef LWIP_HDR_IP_H__
-#define LWIP_HDR_IP_H__
+#ifndef LWIP_HDR_IP_H
+#define LWIP_HDR_IP_H
 
 #include "lwip/opt.h"
 
@@ -322,6 +322,6 @@ err_t ip_input(struct pbuf *p, struct netif *inp);
 }
 #endif
 
-#endif /* LWIP_HDR_IP_H__ */
+#endif /* LWIP_HDR_IP_H */
 
 

+ 3 - 3
src/include/lwip/ip_addr.h

@@ -34,8 +34,8 @@
  * Author: Adam Dunkels <adam@sics.se>
  *
  */
-#ifndef LWIP_HDR_IP_ADDR_H__
-#define LWIP_HDR_IP_ADDR_H__
+#ifndef LWIP_HDR_IP_ADDR_H
+#define LWIP_HDR_IP_ADDR_H
 
 #include "lwip/opt.h"
 #include "lwip/def.h"
@@ -357,4 +357,4 @@ extern const ip_addr_t ip6_addr_any;
 }
 #endif
 
-#endif /* LWIP_HDR_IP_ADDR_H__ */
+#endif /* LWIP_HDR_IP_ADDR_H */

+ 3 - 3
src/include/netif/ppp/pppol2tp.h

@@ -34,8 +34,8 @@
 #include "netif/ppp/ppp_opts.h"
 #if PPP_SUPPORT && PPPOL2TP_SUPPORT /* don't build if not configured for use in lwipopts.h */
 
-#ifndef PPPOL2TP_H_
-#define PPPOL2TP_H_
+#ifndef PPPOL2TP_H
+#define PPPOL2TP_H
 
 #include "ppp.h"
 
@@ -197,5 +197,5 @@ ppp_pcb *pppol2tp_create(struct netif *pppif,
        const u8_t *secret, u8_t secret_len,
        ppp_link_status_cb_fn link_status_cb, void *ctx_cb);
 
-#endif /* PPPOL2TP_H_ */
+#endif /* PPPOL2TP_H */
 #endif /* PPP_SUPPORT && PPPOL2TP_SUPPORT */

+ 2 - 2
test/unit/core/test_mem.h

@@ -1,5 +1,5 @@
-#ifndef LWIP_HDR_TEST_MEM_H__
-#define LWIP_HDR_TEST_MEM_H__
+#ifndef LWIP_HDR_TEST_MEM_H
+#define LWIP_HDR_TEST_MEM_H
 
 #include "../lwip_check.h"
 

+ 2 - 2
test/unit/core/test_pbuf.h

@@ -1,5 +1,5 @@
-#ifndef LWIP_HDR_TEST_PBUF_H__
-#define LWIP_HDR_TEST_PBUF_H__
+#ifndef LWIP_HDR_TEST_PBUF_H
+#define LWIP_HDR_TEST_PBUF_H
 
 #include "../lwip_check.h"
 

+ 2 - 2
test/unit/dhcp/test_dhcp.h

@@ -1,5 +1,5 @@
-#ifndef LWIP_HDR_TEST_DHCP_H__
-#define LWIP_HDR_TEST_DHCP_H__
+#ifndef LWIP_HDR_TEST_DHCP_H
+#define LWIP_HDR_TEST_DHCP_H
 
 #include "../lwip_check.h"
 

+ 2 - 2
test/unit/etharp/test_etharp.h

@@ -1,5 +1,5 @@
-#ifndef LWIP_HDR_TEST_ETHARP_H__
-#define LWIP_HDR_TEST_ETHARP_H__
+#ifndef LWIP_HDR_TEST_ETHARP_H
+#define LWIP_HDR_TEST_ETHARP_H
 
 #include "../lwip_check.h"
 

+ 3 - 3
test/unit/lwip_check.h

@@ -1,5 +1,5 @@
-#ifndef LWIP_HDR_LWIP_CHECK_H__
-#define LWIP_HDR_LWIP_CHECK_H__
+#ifndef LWIP_HDR_LWIP_CHECK_H
+#define LWIP_HDR_LWIP_CHECK_H
 
 /* Common header file for lwIP unit tests using the check framework */
 
@@ -34,4 +34,4 @@ Suite* create_suite(const char* name, testfunc *tests, size_t num_tests, SFun se
 int lwip_unittests_run(void)
 #endif
 
-#endif /* LWIP_HDR_LWIP_CHECK_H__ */
+#endif /* LWIP_HDR_LWIP_CHECK_H */

+ 3 - 3
test/unit/lwipopts.h

@@ -29,8 +29,8 @@
  * Author: Simon Goldschmidt
  *
  */
-#ifndef LWIP_HDR_LWIPOPTS_H__
-#define LWIP_HDR_LWIPOPTS_H__
+#ifndef LWIP_HDR_LWIPOPTS_H
+#define LWIP_HDR_LWIPOPTS_H
 
 /* Prevent having to link sys_arch.c (we don't test the API layers in unit tests) */
 #define NO_SYS                          1
@@ -54,4 +54,4 @@
 /* Minimal changes to opt.h required for etharp unit tests: */
 #define ETHARP_SUPPORT_STATIC_ENTRIES   1
 
-#endif /* LWIP_HDR_LWIPOPTS_H__ */
+#endif /* LWIP_HDR_LWIPOPTS_H */

+ 2 - 2
test/unit/tcp/tcp_helper.h

@@ -1,5 +1,5 @@
-#ifndef LWIP_HDR_TCP_HELPER_H__
-#define LWIP_HDR_TCP_HELPER_H__
+#ifndef LWIP_HDR_TCP_HELPER_H
+#define LWIP_HDR_TCP_HELPER_H
 
 #include "../lwip_check.h"
 #include "lwip/arch.h"

+ 2 - 2
test/unit/tcp/test_tcp.h

@@ -1,5 +1,5 @@
-#ifndef LWIP_HDR_TEST_TCP_H__
-#define LWIP_HDR_TEST_TCP_H__
+#ifndef LWIP_HDR_TEST_TCP_H
+#define LWIP_HDR_TEST_TCP_H
 
 #include "../lwip_check.h"
 

+ 2 - 2
test/unit/tcp/test_tcp_oos.h

@@ -1,5 +1,5 @@
-#ifndef LWIP_HDR_TEST_TCP_OOS_H__
-#define LWIP_HDR_TEST_TCP_OOS_H__
+#ifndef LWIP_HDR_TEST_TCP_OOS_H
+#define LWIP_HDR_TEST_TCP_OOS_H
 
 #include "../lwip_check.h"
 

+ 2 - 2
test/unit/udp/test_udp.h

@@ -1,5 +1,5 @@
-#ifndef LWIP_HDR_TEST_UDP_H__
-#define LWIP_HDR_TEST_UDP_H__
+#ifndef LWIP_HDR_TEST_UDP_H
+#define LWIP_HDR_TEST_UDP_H
 
 #include "../lwip_check.h"