diff options
| author | Paul Eggert | 2024-01-20 16:52:31 -0800 |
|---|---|---|
| committer | Paul Eggert | 2024-01-20 17:28:53 -0800 |
| commit | b6ed79b71ccb3df8df05531d473ff9510cf9a39f (patch) | |
| tree | cea1f448b8e163fc0972b09774f075f9c2277372 /lib-src/seccomp-filter.c | |
| parent | 0a47a5a4bef0a33c012302346685ecab861cc306 (diff) | |
| download | emacs-b6ed79b71ccb3df8df05531d473ff9510cf9a39f.tar.gz emacs-b6ed79b71ccb3df8df05531d473ff9510cf9a39f.zip | |
Be more systematic about parens in C source code
Be more systematic about putting space before paren in calls,
and in avoiding unnecessary parentheses in macros.
This was partly inspired by my wading through gcc -E output
while debugging something else, and seeing too many parens.
This patch does not change the generated .o files on my platform.
Diffstat (limited to 'lib-src/seccomp-filter.c')
| -rw-r--r-- | lib-src/seccomp-filter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib-src/seccomp-filter.c b/lib-src/seccomp-filter.c index 8846e6aedae..0aeb6e8d88a 100644 --- a/lib-src/seccomp-filter.c +++ b/lib-src/seccomp-filter.c | |||
| @@ -114,7 +114,7 @@ set_attribute (enum scmp_filter_attr attr, uint32_t value) | |||
| 114 | { \ | 114 | { \ |
| 115 | const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__}; \ | 115 | const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__}; \ |
| 116 | enum { arg_cnt = sizeof arg_array / sizeof *arg_array }; \ | 116 | enum { arg_cnt = sizeof arg_array / sizeof *arg_array }; \ |
| 117 | int status = seccomp_rule_add_array (ctx, (action), (syscall), \ | 117 | int status = seccomp_rule_add_array (ctx, action, syscall, \ |
| 118 | arg_cnt, arg_array); \ | 118 | arg_cnt, arg_array); \ |
| 119 | if (status < 0) \ | 119 | if (status < 0) \ |
| 120 | fail (-status, "seccomp_rule_add_array (%s, %s, %d, {%s})", \ | 120 | fail (-status, "seccomp_rule_add_array (%s, %s, %d, {%s})", \ |
| @@ -143,7 +143,7 @@ export_filter (const char *file, | |||
| 143 | } | 143 | } |
| 144 | 144 | ||
| 145 | #define EXPORT_FILTER(file, function) \ | 145 | #define EXPORT_FILTER(file, function) \ |
| 146 | export_filter ((file), (function), #function) | 146 | export_filter (file, function, #function) |
| 147 | 147 | ||
| 148 | int | 148 | int |
| 149 | main (int argc, char **argv) | 149 | main (int argc, char **argv) |