From 00c9cb1b22cc17c4db573e0e613a5f116ff0092e Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 25 Jan 2017 15:52:18 +0000 Subject: More work on the types. This commit builds but has errors. Rework src/headers entirely: build skalibs/types.h Convert skalibs/fmtscan.h types. Propagate changes until it builds. There are a lot of incompatible pointer issues remaining, those will be fixed with the buffer overhaul. --- src/libstddjb/ip46_scanlist.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libstddjb/ip46_scanlist.c') diff --git a/src/libstddjb/ip46_scanlist.c b/src/libstddjb/ip46_scanlist.c index 6462da7..7ee2b68 100644 --- a/src/libstddjb/ip46_scanlist.c +++ b/src/libstddjb/ip46_scanlist.c @@ -1,17 +1,17 @@ /* ISC license. */ +#include #include - #include #include -unsigned int ip46full_scanlist (ip46full_t *out, unsigned int max, char const *s, unsigned int *num) +size_t ip46full_scanlist (ip46full_t *out, size_t max, char const *s, size_t *num) { - unsigned int n = 0, w = 0 ; + size_t n = 0, w = 0 ; for (; s[w] && (n < max) ; n++) { ip46full_t z ; - register unsigned int i = ip6_scan(s + w, z.ip) ; + register size_t i = ip6_scan(s + w, z.ip) ; if (i) z.is6 = 1 ; else { -- cgit v1.2.3