summaryrefslogtreecommitdiff
path: root/src/libbiguint/bu_scan_internal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libbiguint/bu_scan_internal.c')
-rw-r--r--src/libbiguint/bu_scan_internal.c6
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) ;