From 7d1e9a21307a3ae679e81d207f311e0e9e7831c0 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Sat, 13 Oct 2018 15:43:35 +0100 Subject: [PATCH] sblist: update to latest libulz version --- sblist.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sblist.c b/sblist.c index 4def63c..96bbebc 100644 --- a/sblist.c +++ b/sblist.c @@ -4,10 +4,7 @@ #include #include #include -#ifndef PAGE_SIZE -#warning "your C library sucks." -#define PAGE_SIZE 4096 -#endif +#define MY_PAGE_SIZE 4096 sblist* sblist_new(size_t itemsize, size_t blockitems) { sblist* ret = (sblist*) malloc(sizeof(sblist)); @@ -23,7 +20,7 @@ static void sblist_clear(sblist* l) { void sblist_init(sblist* l, size_t itemsize, size_t blockitems) { if(l) { - l->blockitems = blockitems ? blockitems : PAGE_SIZE / itemsize; + l->blockitems = blockitems ? blockitems : MY_PAGE_SIZE / itemsize; l->itemsize = itemsize; sblist_clear(l); }