Skip to content

Commit c3c65bc

Browse files
committed
chkshsgr.c: use gid_t.
1 parent 3295cb4 commit c3c65bc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/chkshsgr.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
/* Public domain. */
22

3+
#include <sys/types.h>
34
#include <unistd.h>
45

56
int main()
67
{
7-
short x[4];
8+
gid_t x[4];
89

910
x[0] = x[1] = 0;
1011
if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1);

0 commit comments

Comments
 (0)