]> git.ipfire.org Git - thirdparty/systemd.git/commit
tree-wide: move `unsigned` to the start of type declaration
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 10 Feb 2022 16:19:27 +0000 (17:19 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 10 Feb 2022 20:00:22 +0000 (21:00 +0100)
commitda185cd04d56746a5e66bb7c25cf07865aab9869
tree0634c4862c0fa299b3b6839ea75b8f09704b6d13
parent4ba5594390e7cde52455c4a39860a939378ba240
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".
src/basic/parse-util.c
src/basic/parse-util.h
src/basic/process-util.c
src/core/bpf/restrict_fs/restrict-fs.bpf.c
src/shared/mount-util.c
src/shared/mount-util.h
src/test/test-mountpoint-util.c
src/test/test-sizeof.c