]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Disable clang-format around this macro
authorBob Beck <beck@openssl.org>
Tue, 9 Dec 2025 14:01:47 +0000 (07:01 -0700)
committerNeil Horman <nhorman@openssl.org>
Tue, 9 Dec 2025 14:34:14 +0000 (09:34 -0500)
clang-format sensibly thinks this is an arithmatic operation,
and formats the math. Sadly it does not know we eventually
stringify this behind several other layers of nested macros
and so putting spaces in here is bad.

Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Norbert Pocs <norbertp@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/29350)

(cherry picked from commit 5b0dffa8610a085e937f692754281634aca7b7b8)

crypto/rand/rand_lib.c

index 6651bfd9d3755a616f535b2d18c25c4af853aef6..d9e8f02da7fc9898e7c863764dadf23d28ebd456 100644 (file)
 #include "crypto/context.h"
 #include "internal/provider.h"
 
+/* clang-format off */
 #ifndef OPENSSL_DEFAULT_SEED_SRC
-#define OPENSSL_DEFAULT_SEED_SRC SEED - SRC
+#define OPENSSL_DEFAULT_SEED_SRC SEED-SRC
 #endif
+/* clang-format on */
 
 typedef struct rand_global_st {
     /*