diff options
Diffstat (limited to 'libdhcp')
-rw-r--r-- | libdhcp/dhcp.c | 14 | ||||
-rw-r--r-- | libdhcp/include/libdhcp/dhcp.h | 4 |
2 files changed, 9 insertions, 9 deletions
diff --git a/libdhcp/dhcp.c b/libdhcp/dhcp.c index 2fc7724..a1f54e6 100644 --- a/libdhcp/dhcp.c +++ b/libdhcp/dhcp.c @@ -75,16 +75,16 @@ #include "config.h" #ifndef CONFIG_DHCP_DEBUG -# define CONFIG_DHCP_DEBUG 1 + #define CONFIG_DHCP_DEBUG 1 #endif #ifndef CONFIG_DHCP_HOPS -# define CONFIG_DHCP_HOPS 0 + #define CONFIG_DHCP_HOPS 0 #endif #ifndef CONFIG_DHCP_SECS -# define CONFIG_DHCP_SECS 0 + #define CONFIG_DHCP_SECS 0 #endif #ifndef CONFIG_DHCP_OPT_SIZE -# define CONFIG_DHCP_OPT_SIZE 312 + #define CONFIG_DHCP_OPT_SIZE 312 #endif /* RFC 2131 definitions *******************************************************/ @@ -226,10 +226,10 @@ static const uint8_t dhcp_magic_cookie[] = {99, 130, 83, 99}; /* Implementation *************************************************************/ #if CONFIG_DHCP_DEBUG -# include <stdio.h> -# define debugf(fmt, ...) printf(fmt "\n" __VA_OPT__(,) __VA_ARGS__) + #include <stdio.h> + #define debugf(fmt, ...) printf(fmt "\n" __VA_OPT__(,) __VA_ARGS__) #else -# define debugf(fmt, ...) ((void)0) + #define debugf(fmt, ...) ((void)0) #endif /* DHCP state machine. */ diff --git a/libdhcp/include/libdhcp/dhcp.h b/libdhcp/include/libdhcp/dhcp.h index aae4a4d..660e154 100644 --- a/libdhcp/include/libdhcp/dhcp.h +++ b/libdhcp/include/libdhcp/dhcp.h @@ -1,4 +1,4 @@ -/* libdhcp/dhcp.c - A DHCP client +/* libdhcp/dhcp.h - A DHCP client * * Copyright (C) 2024 Luke T. Shumaker <lukeshu@lukeshu.com> * SPDX-Licence-Identifier: AGPL-3.0-or-later @@ -155,4 +155,4 @@ void xhandle(uint8_t opt_typ, uint8_t opt_len, uint8_t *opt_dat) { } } -#endif /* _LIBDHCP_DHCP_H_ */ +#endif /* _LIBDHCP_DHCP_H_ */ |