diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-01-21 14:51:28 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-01-21 14:51:28 +0000 |
commit | 05db4ba46ae1ca6143bb9b432d1e05e69eddd263 (patch) | |
tree | c08156b5d1750c1b56331a2ef1ba537038d771b8 /src/libbiguint/bu_scan_internal.c | |
parent | 9eb3a42e1a2f14b49ece03b661280db53f15a546 (diff) | |
download | skalibs-05db4ba46ae1ca6143bb9b432d1e05e69eddd263.tar.xz |
Types fix, start: preparation and libbiguint
Diffstat (limited to 'src/libbiguint/bu_scan_internal.c')
-rw-r--r-- | src/libbiguint/bu_scan_internal.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libbiguint/bu_scan_internal.c b/src/libbiguint/bu_scan_internal.c index 696880a..49388cf 100644 --- a/src/libbiguint/bu_scan_internal.c +++ b/src/libbiguint/bu_scan_internal.c @@ -1,13 +1,15 @@ /* ISC license. */ +#include <sys/types.h> +#include <stdint.h> #include <skalibs/uint32.h> #include <skalibs/bytestr.h> #include <skalibs/biguint.h> -void bu_scan_internal (char const *s, unsigned int len, uint32 *x) +void bu_scan_internal (char const *s, size_t len, uint32_t *x) { char fmt[9] = "\0\0\0\0\0\0\0\0" ; - unsigned int i = 0 ; + size_t i = 0 ; if (len & 7) { byte_copy(fmt, len & 7, s) ; |