summaryrefslogtreecommitdiff
path: root/src/minutils/s6ps_grcache.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-03-08 12:17:31 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-03-08 12:17:31 +0000
commit495d625add9e52b29a98c4fa2627a45d20d44849 (patch)
tree4927b430b4115c3217965fa08a9aba76fe809422 /src/minutils/s6ps_grcache.c
parentfa3f206449c7c54afedbc2c7d4107a73e55c204a (diff)
downloads6-linux-utils-495d625add9e52b29a98c4fa2627a45d20d44849.tar.xz
Make it build with skalibs-2.5.0.0
Diffstat (limited to 'src/minutils/s6ps_grcache.c')
-rw-r--r--src/minutils/s6ps_grcache.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/minutils/s6ps_grcache.c b/src/minutils/s6ps_grcache.c
index 9a0d133..f41ccf4 100644
--- a/src/minutils/s6ps_grcache.c
+++ b/src/minutils/s6ps_grcache.c
@@ -1,9 +1,8 @@
/* ISC license. */
-#include <sys/types.h>
#include <grp.h>
#include <errno.h>
-#include <skalibs/uint.h>
+#include <skalibs/types.h>
#include <skalibs/stralloc.h>
#include <skalibs/genalloc.h>
#include <skalibs/skamisc.h>
@@ -56,7 +55,7 @@ int s6ps_grcache_lookup (stralloc *sa, gid_t gid)
return stralloc_cats(sa, satmp.s + genalloc_s(dius_t, &grcache_index)[i].right) ;
err:
{
- register int e = errno ;
+ int e = errno ;
if (wasnull) stralloc_free(&satmp) ;
else satmp.len = d.right ;
errno = e ;