From 1ddf95240c77ae0786dd29e14acdf3549be9094c Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 7 Jan 2017 21:43:42 +0000 Subject: Types fix: first pass Preparation for the skalibs size_t API change. --- src/skaembutils/s6-unquote.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/skaembutils/s6-unquote.c') diff --git a/src/skaembutils/s6-unquote.c b/src/skaembutils/s6-unquote.c index 37c3dfb..1da51e8 100644 --- a/src/skaembutils/s6-unquote.c +++ b/src/skaembutils/s6-unquote.c @@ -1,5 +1,6 @@ /* ISC license. */ +#include #include #include #include @@ -12,9 +13,9 @@ int main (int argc, char const *const *argv) { char const *delim = "\"" ; - unsigned int len, delimlen ; - int nl = 1 ; char const *string ; + size_t len, delimlen ; + int nl = 1 ; PROG = "s6-unquote" ; { subgetopt_t l = SUBGETOPT_ZERO ; @@ -42,7 +43,7 @@ int main (int argc, char const *const *argv) strerr_dief1x(100, "invalid starting quote character") ; } { - unsigned int r = 0, w = 0 ; + unsigned int r = 0, w = 0 ; /* XXX */ char buf[len+1] ; if (!string_unquote_withdelim(buf, &w, string, len, &r, delim, delimlen)) { -- cgit v1.3.1