aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sommerseth2022-04-20 14:13:22 +0200
committerGert Doering2022-04-21 09:28:28 +0200
commit9febbcbbcf3b1a786a1e77145d30a43eb7996dc4 (patch)
tree02dc1c8bb2b01fee7a20cc698844dfd458aabc7b
parentfbd81db5f6d5b9b9d86ed3ca198bfffb478f2508 (diff)
downloadopenvpn-9febbcbbcf3b1a786a1e77145d30a43eb7996dc4.zip
openvpn-9febbcbbcf3b1a786a1e77145d30a43eb7996dc4.tar.gz
dev-tools: Avoid uncrustify mangling MAC_FMT macro
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>
-rw-r--r--src/openvpn/misc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/openvpn/misc.h b/src/openvpn/misc.h
index 7970b60..d8a1565 100644
--- a/src/openvpn/misc.h
+++ b/src/openvpn/misc.h
@@ -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], \