summaryrefslogtreecommitdiff
path: root/src/libbiguint/bu_scan_internal.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-02-21 12:05:07 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-02-21 12:05:07 +0000
commit49d8fa1058aaf23c29e074b2314492ae40d2f557 (patch)
tree393f884d5a99f984e992a0f35f1b02ac43536217 /src/libbiguint/bu_scan_internal.c
parentfdffefb8032922ce7ffe4c00816072a8ff2148fc (diff)
downloadskalibs-49d8fa1058aaf23c29e074b2314492ae40d2f557.tar.xz
Types change: big pass on libstddjb and libunixonacid
libdatastruct still missing, library still not functional
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) ;
}
}