From d22f247d6c68283526ddd4ce32ab677209bf56e0 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Mon, 4 Aug 2025 11:10:21 +0200 Subject: [PATCH] Disable clang-format for some code parts These do not come out better with clang-format, so leave them be. Change-Id: I4dd0c44982955f16ec4a3f167d4e6f3e9b4dbc11 Signed-off-by: Frank Lichtenheld Acked-by: Gert Doering Message-Id: <20250804091027.13509-1-gert@greenie.muc.de> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg32492.html Signed-off-by: Gert Doering --- src/openvpn/ssl_common.h | 3 ++- src/tapctl/main.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/openvpn/ssl_common.h b/src/openvpn/ssl_common.h index 90c0086f8..1fdc18724 100644 --- a/src/openvpn/ssl_common.h +++ b/src/openvpn/ssl_common.h @@ -74,6 +74,7 @@ * * @{ */ +/* clang-format off */ #define S_ERROR (-2) /**< Error state. */ #define S_ERROR_PRE (-1) /**< Error state but try to send out alerts * before killing the keystore and moving @@ -104,7 +105,7 @@ #define S_GENERATED_KEYS 8 /**< The data channel keys have been generated * The TLS session is fully authenticated * when reaching this state. */ - +/* clang-format on */ /* Note that earlier versions also had a S_OP_NORMAL state that was * virtually identical with S_ACTIVE and the code still assumes everything * >= S_ACTIVE to be fully operational */ diff --git a/src/tapctl/main.c b/src/tapctl/main.c index 82caeaf1a..0dec3033f 100644 --- a/src/tapctl/main.c +++ b/src/tapctl/main.c @@ -36,6 +36,7 @@ #endif +/* clang-format off */ const WCHAR title_string[] = _L(PACKAGE_NAME) L" " _L(PACKAGE_VERSION) ; @@ -110,6 +111,7 @@ static const WCHAR usage_message_delete[] = L"\n" L"tapctl delete \n" ; +/* clang-format on */ /** -- 2.47.3