]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Disable clang-format for some code parts
authorFrank Lichtenheld <frank@lichtenheld.com>
Mon, 4 Aug 2025 09:10:21 +0000 (11:10 +0200)
committerGert Doering <gert@greenie.muc.de>
Mon, 4 Aug 2025 09:14:12 +0000 (11:14 +0200)
These do not come out better with clang-format,
so leave them be.

Change-Id: I4dd0c44982955f16ec4a3f167d4e6f3e9b4dbc11
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
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 <gert@greenie.muc.de>
src/openvpn/ssl_common.h
src/tapctl/main.c

index 90c0086f83f460579412cd6c4542167f8cd5e17a..1fdc187244b143069f06eb6fde176b5d324c1c15 100644 (file)
@@ -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
 #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 */
index 82caeaf1ac16eddcf9df47ed14090464b6fdb8b4..0dec3033f5bfa081803ea52f3be45f7fb06dadd5 100644 (file)
@@ -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 <adapter GUID | adapter name>\n"
 ;
+/* clang-format on */
 
 
 /**