From 9be4af55521d653cfb1c5037412e937f800888c7 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 8 Jan 2017 18:52:14 +0000 Subject: Types fix, first pass Deeper fixes need to be done if the avltree.h API ever changes. --- src/minutils/s6-devd.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/minutils/s6-devd.c') diff --git a/src/minutils/s6-devd.c b/src/minutils/s6-devd.c index 74f2d41..58508a5 100644 --- a/src/minutils/s6-devd.c +++ b/src/minutils/s6-devd.c @@ -1,5 +1,6 @@ /* ISC license. */ +#include #include #include #include @@ -11,7 +12,8 @@ static inline int check_targ (char const *s) { - unsigned int t = 0, pos = 0 ; + size_t pos = 0 ; + unsigned int t = 0 ; pos += uint_scan(s + pos, &t) ; if (s[pos] && s[pos++] != ':') return 0 ; if (!t) return 1 ; @@ -50,7 +52,8 @@ int main (int argc, char const *const *argv, char const *const *envp) if (!argc) strerr_dieusage(100, USAGE) ; { - unsigned int m = 0, pos = 0 ; + size_t pos = 0 ; + unsigned int m = 0 ; char fmt[UINT_FMT * 3] ; char const *newargv[argc + 15] ; newargv[m++] = S6_LINUX_UTILS_BINPREFIX "s6-uevent-listener" ; -- cgit v1.2.3