summaryrefslogtreecommitdiff
path: root/src/libdatastruct
diff options
context:
space:
mode:
Diffstat (limited to 'src/libdatastruct')
-rw-r--r--src/libdatastruct/gensetdyn_init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libdatastruct/gensetdyn_init.c b/src/libdatastruct/gensetdyn_init.c
index 744c63f..bdf4e09 100644
--- a/src/libdatastruct/gensetdyn_init.c
+++ b/src/libdatastruct/gensetdyn_init.c
@@ -1,13 +1,13 @@
/* ISC license. */
-#include <skalibs/stralloc.h>
+#include <stdint.h>
#include <skalibs/genalloc.h>
#include <skalibs/gensetdyn.h>
void gensetdyn_init (gensetdyn *g, uint32_t esize, uint32_t base, uint32_t fracnum, uint32_t fracden)
{
- g->storage = stralloc_zero ;
- g->freelist = genalloc_zero ;
+ g->storage.len = 0 ;
+ genalloc_setlen(uint32_t, &g->freelist, 0) ;
g->esize = esize ;
g->base = base ;
g->fracnum = fracnum ;