From c0bfd8814f6cd8e45a230deca0f28954ed38480e Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 8 Jan 2017 22:37:23 +0000 Subject: Types fix: first pass --- src/libs6rc/s6rc_sanitize_dir.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/libs6rc/s6rc_sanitize_dir.c') diff --git a/src/libs6rc/s6rc_sanitize_dir.c b/src/libs6rc/s6rc_sanitize_dir.c index 69c4d13..fa7079d 100644 --- a/src/libs6rc/s6rc_sanitize_dir.c +++ b/src/libs6rc/s6rc_sanitize_dir.c @@ -1,16 +1,17 @@ /* ISC license. */ +#include #include #include #include #include -int s6rc_sanitize_dir (stralloc *sa, char const *fn, unsigned int *dirlen) +int s6rc_sanitize_dir (stralloc *sa, char const *fn, size_t *dirlen) { + size_t base = sa->len ; + size_t fnlen = str_len(fn) ; + size_t ddirlen ; int wasnull = !sa->s ; - unsigned int base = sa->len ; - unsigned int fnlen = str_len(fn) ; - unsigned int ddirlen ; if (!sadirname(sa, fn, fnlen)) return 0 ; if (sa->len != base + 1 || sa->s[base] != '/') if (!stralloc_catb(sa, "/", 1)) goto err ; -- cgit v1.2.3