From ee1ba3209993b72e90f5fe30a16ad951f1e2402d Mon Sep 17 00:00:00 2001 From: Lorenz Kästle Date: Thu, 17 Oct 2024 17:57:50 +0200 Subject: lib: clang-format --- lib/utils_tcp.h | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'lib/utils_tcp.h') diff --git a/lib/utils_tcp.h b/lib/utils_tcp.h index 0328a9cf..6543377d 100644 --- a/lib/utils_tcp.h +++ b/lib/utils_tcp.h @@ -1,8 +1,8 @@ /* Header file for utils_tcp */ -#define NP_MATCH_ALL 0x1 -#define NP_MATCH_EXACT 0x2 -#define NP_MATCH_VERBOSE 0x4 +#define NP_MATCH_ALL 0x1 +#define NP_MATCH_EXACT 0x2 +#define NP_MATCH_VERBOSE 0x4 /* * The NP_MATCH_RETRY state indicates that matching might succeed if @@ -10,13 +10,6 @@ * caller to decide whether it makes sense to wait for additional data from the * server. */ -enum np_match_result { - NP_MATCH_FAILURE, - NP_MATCH_SUCCESS, - NP_MATCH_RETRY -}; +enum np_match_result { NP_MATCH_FAILURE, NP_MATCH_SUCCESS, NP_MATCH_RETRY }; -enum np_match_result np_expect_match(char *status, - char **server_expect, - int server_expect_count, - int flags); +enum np_match_result np_expect_match(char *status, char **server_expect, int server_expect_count, int flags); -- cgit v1.2.3-74-g34f1 From 7d90b8200f709d125df19fa6aedf633c64b88ad4 Mon Sep 17 00:00:00 2001 From: RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> Date: Thu, 31 Oct 2024 01:31:59 +0100 Subject: lib: clang-format for headers too --- lib/utils_tcp.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/utils_tcp.h') diff --git a/lib/utils_tcp.h b/lib/utils_tcp.h index 6543377d..d5999e9b 100644 --- a/lib/utils_tcp.h +++ b/lib/utils_tcp.h @@ -10,6 +10,10 @@ * caller to decide whether it makes sense to wait for additional data from the * server. */ -enum np_match_result { NP_MATCH_FAILURE, NP_MATCH_SUCCESS, NP_MATCH_RETRY }; +enum np_match_result { + NP_MATCH_FAILURE, + NP_MATCH_SUCCESS, + NP_MATCH_RETRY +}; enum np_match_result np_expect_match(char *status, char **server_expect, int server_expect_count, int flags); -- cgit v1.2.3-74-g34f1