summaryrefslogtreecommitdiff
path: root/src/test/test-sizeof.c
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2022-02-10 17:19:27 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-02-10 21:00:22 +0100
commitda185cd04d56746a5e66bb7c25cf07865aab9869 (patch)
tree0634c4862c0fa299b3b6839ea75b8f09704b6d13 /src/test/test-sizeof.c
parent4ba5594390e7cde52455c4a39860a939378ba240 (diff)
downloadsystemd-da185cd04d56746a5e66bb7c25cf07865aab9869.tar.gz
tree-wide: move `unsigned` to the start of type declaration
Even though ISO C11 doesn't mandate in which order the type specifiers should appear, having `unsigned` at the beginning of each type declaration feels more natural and, more importantly, it unbreaks Coccinelle, which has a hard time parsing `long unsigned` and others: ``` init_defs_builtins: /usr/lib64/coccinelle/standard.h init_defs: /home/mrc0mmand/repos/systemd/coccinelle/macros.h HANDLING: src/shared/mount-util.c : 1: strange type1, maybe because of weird order: long unsigned ``` Most of the codebase already "complies", so let's fix the remaining "offenders".
Diffstat (limited to 'src/test/test-sizeof.c')
-rw-r--r--src/test/test-sizeof.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-sizeof.c b/src/test/test-sizeof.c
index f349852553..55bd81e22f 100644
--- a/src/test/test-sizeof.c
+++ b/src/test/test-sizeof.c
@@ -53,8 +53,8 @@ int main(void) {
info(unsigned char);
info(short unsigned);
info(unsigned);
- info(long unsigned);
- info(long long unsigned);
+ info(unsigned long);
+ info(unsigned long long);
info(__syscall_ulong_t);
info(__syscall_slong_t);
info(intmax_t);