]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
macro: also use trailing __ for alignof use in attributes
authorLennart Poettering <lennart@poettering.net>
Mon, 11 Oct 2021 11:38:37 +0000 (13:38 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 11 Oct 2021 12:09:33 +0000 (14:09 +0200)
While the underscore is optional, the docs say we should suffix and we
do that everywher else. Do so here too.

src/basic/macro.h

index 6d5840a832d9c466d86e35c9e75347aed9984d0d..c05339832d7171fcedcb2f9959be34eb2dcce1c5 100644 (file)
@@ -25,7 +25,7 @@
 #define _public_ __attribute__((__visibility__("default")))
 #define _hidden_ __attribute__((__visibility__("hidden")))
 #define _weakref_(x) __attribute__((__weakref__(#x)))
-#define _alignas_(x) __attribute__((__aligned__(__alignof(x))))
+#define _alignas_(x) __attribute__((__aligned__(__alignof__(x))))
 #define _alignptr_ __attribute__((__aligned__(sizeof(void*))))
 #define _warn_unused_result_ __attribute__((__warn_unused_result__))