diff options
| author | Manuel Mausz <manuel@mausz.at> | 2019-06-11 15:28:27 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2019-06-11 15:29:11 +0200 |
| commit | 692760720b197b46e8e4268bede8cad6f90399aa (patch) | |
| tree | 0d0d5f45759b83e15d6668357f9482dca236880b /chkshsgr.c | |
| parent | 54bb1142daa7c25f626176bb9357e1fc7ca75fbb (diff) | |
| download | qmail-692760720b197b46e8e4268bede8cad6f90399aa.tar.gz qmail-692760720b197b46e8e4268bede8cad6f90399aa.tar.bz2 qmail-692760720b197b46e8e4268bede8cad6f90399aa.zip | |
Fix compile warnings...
Diffstat (limited to 'chkshsgr.c')
| -rw-r--r-- | chkshsgr.c | 6 |
1 files changed, 5 insertions, 1 deletions
| @@ -1,7 +1,11 @@ | |||
| 1 | #include <sys/types.h> | ||
| 2 | #include <unistd.h> | ||
| 3 | #include <grp.h> | ||
| 1 | #include "exit.h" | 4 | #include "exit.h" |
| 5 | |||
| 2 | void main() | 6 | void main() |
| 3 | { | 7 | { |
| 4 | short x[4]; | 8 | gid_t x[4]; |
| 5 | 9 | ||
| 6 | x[0] = x[1] = 0; | 10 | x[0] = x[1] = 0; |
| 7 | if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1); | 11 | if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1); |
