diff options
Diffstat (limited to 'src/libstddjb/ip4_scanu32.c')
-rw-r--r-- | src/libstddjb/ip4_scanu32.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 <sys/types.h> +#include <stdint.h> #include <skalibs/uint32.h> #include <skalibs/fmtscan.h> -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 ; } |