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.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libbiguint/bu_scan_internal.c b/src/libbiguint/bu_scan_internal.c
index 49388cf..15c2f0f 100644
--- a/src/libbiguint/bu_scan_internal.c
+++ b/src/libbiguint/bu_scan_internal.c
@@ -1,9 +1,8 @@
/* ISC license. */
-#include <sys/types.h>
#include <stdint.h>
+#include <string.h>
#include <skalibs/uint32.h>
-#include <skalibs/bytestr.h>
#include <skalibs/biguint.h>
void bu_scan_internal (char const *s, size_t len, uint32_t *x)
@@ -12,12 +11,12 @@ void bu_scan_internal (char const *s, size_t len, uint32_t *x)
size_t i = 0 ;
if (len & 7)
{
- byte_copy(fmt, len & 7, s) ;
+ memcpy(fmt, s, len & 7) ;
uint32_xscan(fmt, x + (len >> 3)) ;
}
for (; i < (len >> 3) ; i++)
{
- byte_copy(fmt, 8, s + len - 8 - (i << 3)) ;
+ memcpy(fmt, s + len - 8 - (i << 3), 8) ;
uint32_xscan(fmt, x + i) ;
}
}