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/ip4_scanu32.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/libstddjb/ip4_scanu32.c') diff --git a/src/libstddjb/ip4_scanu32.c b/src/libstddjb/ip4_scanu32.c index a305926..205c52d 100644 --- a/src/libstddjb/ip4_scanu32.c +++ b/src/libstddjb/ip4_scanu32.c @@ -1,12 +1,14 @@ /* ISC license. */ +#include +#include #include #include -unsigned int ip4_scanu32 (char const *s, uint32 *ip) +size_t ip4_scanu32 (char const *s, uint32_t *ip) { char pack[4] ; - register unsigned int r = ip4_scan(s, pack) ; + register size_t r = ip4_scan(s, pack) ; if (r) uint32_unpack_big(pack, ip) ; return r ; } -- cgit v1.3.1