summaryrefslogtreecommitdiffstats
path: root/chkshsgr.c
diff options
context:
space:
mode:
authorManuel Mausz <manuel@mausz.at>2019-06-11 15:28:27 +0200
committermanuel <manuel@mausz.at>2019-06-11 15:29:11 +0200
commit692760720b197b46e8e4268bede8cad6f90399aa (patch)
tree0d0d5f45759b83e15d6668357f9482dca236880b /chkshsgr.c
parent54bb1142daa7c25f626176bb9357e1fc7ca75fbb (diff)
downloadqmail-692760720b197b46e8e4268bede8cad6f90399aa.tar.gz
qmail-692760720b197b46e8e4268bede8cad6f90399aa.tar.bz2
qmail-692760720b197b46e8e4268bede8cad6f90399aa.zip
Fix compile warnings...
Diffstat (limited to 'chkshsgr.c')
-rw-r--r--chkshsgr.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/chkshsgr.c b/chkshsgr.c
index 2bcdade..bee9700 100644
--- a/chkshsgr.c
+++ b/chkshsgr.c
@@ -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
2void main() 6void 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);