From 6a36d0c5752be11b48d9e1e5d5d25a581349c445 Mon Sep 17 00:00:00 2001 From: aozima Date: Wed, 9 May 2018 17:55:41 +0800 Subject: [PATCH] [DHCPD] format code by Astyle. --- components/net/lwip_dhcpd/dhcp_server.c | 22 +++++++++++----------- components/net/lwip_dhcpd/dhcp_server.h | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/components/net/lwip_dhcpd/dhcp_server.c b/components/net/lwip_dhcpd/dhcp_server.c index d2e644cb93..ac33804e28 100644 --- a/components/net/lwip_dhcpd/dhcp_server.c +++ b/components/net/lwip_dhcpd/dhcp_server.c @@ -41,33 +41,33 @@ #include #if (LWIP_VERSION) >= 0x02000000U -#include + #include #endif /* DHCP server option */ /* allocated client ip range */ #ifndef DHCPD_CLIENT_IP_MIN -#define DHCPD_CLIENT_IP_MIN 2 + #define DHCPD_CLIENT_IP_MIN 2 #endif #ifndef DHCPD_CLIENT_IP_MAX -#define DHCPD_CLIENT_IP_MAX 254 + #define DHCPD_CLIENT_IP_MAX 254 #endif /* the DHCP server address */ #ifndef DHCPD_SERVER_IPADDR0 -#define DHCPD_SERVER_IPADDR0 192UL -#define DHCPD_SERVER_IPADDR1 168UL -#define DHCPD_SERVER_IPADDR2 169UL -#define DHCPD_SERVER_IPADDR3 1UL + #define DHCPD_SERVER_IPADDR0 192UL + #define DHCPD_SERVER_IPADDR1 168UL + #define DHCPD_SERVER_IPADDR2 169UL + #define DHCPD_SERVER_IPADDR3 1UL #endif //#define DHCP_DEBUG_PRINTF #ifdef DHCP_DEBUG_PRINTF -#define DEBUG_PRINTF rt_kprintf("[DHCP] "); rt_kprintf + #define DEBUG_PRINTF rt_kprintf("[DHCP] "); rt_kprintf #else -#define DEBUG_PRINTF(...) + #define DEBUG_PRINTF(...) #endif /* DHCP_DEBUG_PRINTF */ /* we need some routines in the DHCP of lwIP */ @@ -79,11 +79,11 @@ #define BUFSZ 1024 #ifndef MAC_ADDR_LEN -#define MAC_ADDR_LEN 6 + #define MAC_ADDR_LEN 6 #endif #ifndef MAC_TABLE_LEN -#define MAC_TABLE_LEN 4 + #define MAC_TABLE_LEN 4 #endif struct mac_addr_t diff --git a/components/net/lwip_dhcpd/dhcp_server.h b/components/net/lwip_dhcpd/dhcp_server.h index 981337e6b1..03009b2eb1 100644 --- a/components/net/lwip_dhcpd/dhcp_server.h +++ b/components/net/lwip_dhcpd/dhcp_server.h @@ -31,7 +31,7 @@ #ifndef DHCPV4_SERVER_H__ #define DHCPV4_SERVER_H__ -void dhcpd_start(const char* netif_name); +void dhcpd_start(const char *netif_name); #endif -- GitLab