]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
dev-tools: Avoid uncrustify mangling MAC_FMT macro
authorDavid Sommerseth <davids@openvpn.net>
Wed, 20 Apr 2022 12:13:22 +0000 (14:13 +0200)
committerGert Doering <gert@greenie.muc.de>
Thu, 21 Apr 2022 07:28:28 +0000 (09:28 +0200)
The MAC_FMT in src/openvpn/misc.h need to be formatted strictly, and
uncrustify does not fully grasp the current code.  So we tell it to not
touch it.

Signed-off-by: David Sommerseth <davids@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20220420121322.42732-3-openvpn@sf.lists.topphemmelig.net>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24121.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/misc.h

index 7970b60da0c92100559b4389e952f3053abf8f9e..d8a15650316381df6a11aadda4aab63eb6c0d06e 100644 (file)
@@ -212,7 +212,9 @@ struct buffer
 prepend_dir(const char *dir, const char *path, struct gc_arena *gc);
 
 #define _STRINGIFY(S) #S
+/* *INDENT-OFF* - uncrustify need to ignore this macro */
 #define MAC_FMT _STRINGIFY(%02hhx:%02hhx:%02hhx:%02hhx:%02hhx:%02hhx)
+/* *INDENT-ON* */
 #define MAC_PRINT_ARG(_mac) _mac[0], _mac[1], _mac[2],  \
         _mac[3], _mac[4], _mac[5]
 #define MAC_SCAN_ARG(_mac) &_mac[0], &_mac[1], &_mac[2], \