summaryrefslogtreecommitdiff
path: root/src/pipe-tools/s6-mkfifodir.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-01-12 23:16:36 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-01-12 23:16:36 +0000
commitbf6d072124a960d3b84ae39cd15c5aeca2e41c88 (patch)
treec082150f61e67d929b1baca2f5c6104fe959ccac /src/pipe-tools/s6-mkfifodir.c
parent81c7a02ec870ef3dba9f8b8f8dbecbd119e5ea47 (diff)
downloads6-bf6d072124a960d3b84ae39cd15c5aeca2e41c88.tar.xz
Types fix, first pass
Diffstat (limited to 'src/pipe-tools/s6-mkfifodir.c')
-rw-r--r--src/pipe-tools/s6-mkfifodir.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/pipe-tools/s6-mkfifodir.c b/src/pipe-tools/s6-mkfifodir.c
index 4f5151a..268d822 100644
--- a/src/pipe-tools/s6-mkfifodir.c
+++ b/src/pipe-tools/s6-mkfifodir.c
@@ -1,7 +1,8 @@
/* ISC license. */
+#include <sys/types.h>
#include <skalibs/sgetopt.h>
-#include <skalibs/uint.h>
+#include <skalibs/gidstuff.h>
#include <skalibs/strerr2.h>
#include <s6/ftrigw.h>
@@ -10,7 +11,7 @@
int main (int argc, char const *const *argv)
{
subgetopt_t l = SUBGETOPT_ZERO ;
- int gid = -1 ;
+ gid_t gid = -1 ;
int force = 0 ;
PROG = "s6-mkfifodir" ;
for (;;)
@@ -20,13 +21,7 @@ int main (int argc, char const *const *argv)
switch (opt)
{
case 'f' : force = 1 ; break ;
- case 'g' :
- {
- unsigned int g ;
- if (!uint0_scan(l.arg, &g)) strerr_dieusage(100, USAGE) ;
- gid = (int)g ;
- break ;
- }
+ case 'g' : if (!gid0_scan(l.arg, &gid)) strerr_dieusage(100, USAGE) ; break ;
default : strerr_dieusage(100, USAGE) ;
}
}