From bf6d072124a960d3b84ae39cd15c5aeca2e41c88 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 12 Jan 2017 23:16:36 +0000 Subject: Types fix, first pass --- src/conn-tools/s6-sudoc.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/conn-tools/s6-sudoc.c') diff --git a/src/conn-tools/s6-sudoc.c b/src/conn-tools/s6-sudoc.c index 823d7cb..779380f 100644 --- a/src/conn-tools/s6-sudoc.c +++ b/src/conn-tools/s6-sudoc.c @@ -1,9 +1,11 @@ /* ISC license. */ +#include #include #include #include #include +#include #include #include #include @@ -70,12 +72,12 @@ int main (int argc, char const *const *argv, char const *const *envp) { .s = 0, .len = 0 } } ; unixmessage_v_t mv = { .v = v, .vlen = 4, .fds = fds, .nfds = 3 } ; stralloc sa = STRALLOC_ZERO ; - unsigned int envlen = doenv ? env_len(envp) : 0 ; - uint32_pack_big(pack, (uint32)argc) ; - uint32_pack_big(pack + 4, (uint32)envlen) ; + size_t envlen = doenv ? env_len(envp) : 0 ; + uint32_pack_big(pack, (uint32_t)argc) ; + uint32_pack_big(pack + 4, (uint32_t)envlen) ; if (!env_string(&sa, argv, argc)) dienomem() ; v[2].len = sa.len ; - uint32_pack_big(pack + 8, (uint32)v[2].len) ; + uint32_pack_big(pack + 8, (uint32_t)v[2].len) ; if (doenv) { if (!env_string(&sa, envp, envlen)) dienomem() ; -- cgit v1.2.3