comparison lwlib/lw_stack.c @ 86:00ddfdc1e1e3

Fixed wrong size in lw_alloc() for lw_stack_create()
author lost@l-w.ca
date Wed, 22 Jun 2011 18:32:46 -0600
parents 7317fbe024af
children
comparison
equal deleted inserted replaced
85:8fa52c3f2970 86:00ddfdc1e1e3
28 28
29 lw_stack_t lw_stack_create(void (*freefn)(void *d)) 29 lw_stack_t lw_stack_create(void (*freefn)(void *d))
30 { 30 {
31 lw_stack_t S; 31 lw_stack_t S;
32 32
33 S = lw_alloc(sizeof(lw_stack_t)); 33 S = lw_alloc(sizeof(struct lw_stack_priv));
34 S -> head = NULL; 34 S -> head = NULL;
35 S -> freefn = freefn; 35 S -> freefn = freefn;
36 return S; 36 return S;
37 } 37 }
38 38