Skip to content

Commit d22f247

Browse files
flichtenheldcron2
authored andcommitted
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 <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>
1 parent bba057b commit d22f247

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/openvpn/ssl_common.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
*
7575
* @{
7676
*/
77+
/* clang-format off */
7778
#define S_ERROR (-2) /**< Error state. */
7879
#define S_ERROR_PRE (-1) /**< Error state but try to send out alerts
7980
* before killing the keystore and moving
@@ -104,7 +105,7 @@
104105
#define S_GENERATED_KEYS 8 /**< The data channel keys have been generated
105106
* The TLS session is fully authenticated
106107
* when reaching this state. */
107-
108+
/* clang-format on */
108109
/* Note that earlier versions also had a S_OP_NORMAL state that was
109110
* virtually identical with S_ACTIVE and the code still assumes everything
110111
* >= S_ACTIVE to be fully operational */

src/tapctl/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#endif
3737

3838

39+
/* clang-format off */
3940
const WCHAR title_string[] =
4041
_L(PACKAGE_NAME) L" " _L(PACKAGE_VERSION)
4142
;
@@ -110,6 +111,7 @@ static const WCHAR usage_message_delete[] =
110111
L"\n"
111112
L"tapctl delete <adapter GUID | adapter name>\n"
112113
;
114+
/* clang-format on */
113115

114116

115117
/**

0 commit comments

Comments
 (0)