aboutsummaryrefslogtreecommitdiffstats
path: root/man3
diff options
context:
space:
mode:
authorAlejandro Colomar <colomar.6.4.3@gmail.com>2020-08-25 14:21:57 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2020-08-25 14:33:03 +0200
commitb5cd2470690be26cc63334c959c51a2a233a174f (patch)
tree1a2984782e77a866def143592e1c223d7276b4d1 /man3
parentb32a6935592118ce4acfddf95e52fca8fbd3aded (diff)
downloadman-pages-b5cd2470690be26cc63334c959c51a2a233a174f.tar.gz
getgrouplist.3, inotify.7: Use sizeof consistently
Use ``sizeof`` consistently through all the examples in the following way: - Never use a space after ``sizeof``, and always use parentheses around the argument. Rationale: https://www.kernel.org/doc/html/v5.8/process/coding-style.html#spaces Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man3')
-rw-r--r--man3/getgrouplist.32
1 files changed, 1 insertions, 1 deletions
diff --git a/man3/getgrouplist.3 b/man3/getgrouplist.3
index 61c88f75f1..aea52d999c 100644
--- a/man3/getgrouplist.3
+++ b/man3/getgrouplist.3
@@ -164,7 +164,7 @@ main(int argc, char *argv[])
ngroups = atoi(argv[2]);
- groups = malloc(ngroups * sizeof (gid_t));
+ groups = malloc(ngroups * sizeof(gid_t));
if (groups == NULL) {
perror("malloc");
exit(EXIT_FAILURE);