diff options
Diffstat (limited to 'tests/aplwc_eval.c')
| -rw-r--r-- | tests/aplwc_eval.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/aplwc_eval.c b/tests/aplwc_eval.c index b0755eb..3d314e7 100644 --- a/tests/aplwc_eval.c +++ b/tests/aplwc_eval.c @@ -4,12 +4,11 @@ #include <aplwc.h> static void * -my_alloc(size_t min, size_t max, size_t *actual) +my_alloc(size_t size, size_t *actual) { - (void)max; - - *actual = min; - return malloc(min); + if(actual) + *actual = size; + return malloc(size); } static void |