From 495d625add9e52b29a98c4fa2627a45d20d44849 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 8 Mar 2017 12:17:31 +0000 Subject: Make it build with skalibs-2.5.0.0 --- src/minutils/s6ps_pwcache.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/minutils/s6ps_pwcache.c') diff --git a/src/minutils/s6ps_pwcache.c b/src/minutils/s6ps_pwcache.c index abee250..2f4c329 100644 --- a/src/minutils/s6ps_pwcache.c +++ b/src/minutils/s6ps_pwcache.c @@ -3,7 +3,7 @@ #include #include #include -#include +#include #include #include #include @@ -33,7 +33,7 @@ int s6ps_pwcache_lookup (stralloc *sa, uid_t uid) if (!avltree_search(&pwcache_tree, &d.left, &i)) { struct passwd *pw ; - size_t n = genalloc_len(dius_t, &pwcache_index) ; + unsigned int n = genalloc_len(dius_t, &pwcache_index) ; errno = 0 ; pw = getpwuid(uid) ; if (!pw) @@ -45,7 +45,7 @@ int s6ps_pwcache_lookup (stralloc *sa, uid_t uid) stralloc_catb(&satmp, ")", 2) ; } else if (!stralloc_cats(&satmp, pw->pw_name) || !stralloc_0(&satmp)) return 0 ; - if (!genalloc_append(diuint, &pwcache_index, &d)) goto err ; + if (!genalloc_append(dius_t, &pwcache_index, &d)) goto err ; if (!avltree_insert(&pwcache_tree, n)) { genalloc_setlen(dius_t, &pwcache_index, n) ; @@ -53,10 +53,10 @@ int s6ps_pwcache_lookup (stralloc *sa, uid_t uid) } i = n ; } - return stralloc_cats(sa, satmp.s + genalloc_s(diuint, &pwcache_index)[i].right) ; + return stralloc_cats(sa, satmp.s + genalloc_s(dius_t, &pwcache_index)[i].right) ; err: { - register int e = errno ; + int e = errno ; if (wasnull) stralloc_free(&satmp) ; else satmp.len = d.right ; errno = e ; -- cgit v1.3.1