X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=ucw%2Feltpool.c;h=5312f211398133f974758ccd1c8cfbd88a781a1e;hb=a6368763d08042207963c941b1c52b5fafcb0cb3;hp=11fd14aa433f3f283f923dfde44e6b37ce148b1d;hpb=fa7aa6d9457616ce28f97c83eaa616d0ff276870;p=libucw.git diff --git a/ucw/eltpool.c b/ucw/eltpool.c index 11fd14aa..5312f211 100644 --- a/ucw/eltpool.c +++ b/ucw/eltpool.c @@ -22,7 +22,7 @@ #include struct eltpool * -ep_new(uns elt_size, uns elts_per_chunk) +ep_new(uint elt_size, uint elts_per_chunk) { struct eltpool *pool = xmalloc_zero(sizeof(*pool)); pool->elt_size = ALIGN_TO(MAX(elt_size, sizeof(struct eltpool_free)), CPU_STRUCT_ALIGN); @@ -51,7 +51,7 @@ ep_alloc_slow(struct eltpool *pool) { struct eltpool_chunk *ch = page_alloc(pool->chunk_size); void *p = (void *)(ch+1); - for (uns i=1; ielts_per_chunk; i++) + for (uint i=1; ielts_per_chunk; i++) { struct eltpool_free *f = p; f->next = pool->first_free; @@ -85,7 +85,7 @@ int main(void) struct eltpool *ep = ep_new(sizeof(struct argh), 64); clist l; clist_init(&l); - for (uns i=0; i<65536; i++) + for (uint i=0; i<65536; i++) { struct argh *a = ep_alloc(ep); if (i % 3)