]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
man/man2/getgroups.2: setgroups(2): Don't use NULL as a 0-length array
authorAlejandro Colomar <alx@kernel.org>
Sun, 10 Aug 2025 16:28:02 +0000 (18:28 +0200)
committerAlejandro Colomar <alx@kernel.org>
Sun, 10 Aug 2025 16:29:09 +0000 (18:29 +0200)
Reported-by: Christopher Bazley <chris.bazley.wg14@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man/man2/getgroups.2

index 63515828245a860a849c07404fa27f2134e63f61..cdda439921c6327b4e6c725171ff14536d9a4d5d 100644 (file)
@@ -16,7 +16,7 @@ Standard C library
 .P
 .B #include <grp.h>
 .P
-.BI "int setgroups(size_t " size ", const gid_t " list "[_Nullable " size ]);
+.BI "int setgroups(size_t " size ", const gid_t " list [ size ]);
 .fi
 .P
 .RS -4
@@ -75,7 +75,7 @@ A process can drop all of its supplementary groups with the call:
 .P
 .in +4n
 .EX
-setgroups(0, NULL);
+setgroups(0, (gid_t [0]){});
 .EE
 .in
 .SH RETURN VALUE