introduce htmalloc

This commit is contained in:
whottgen
2004-10-15 11:18:48 +00:00
parent ec14ad4e99
commit ae46b70398
17 changed files with 167 additions and 66 deletions

View File

@ -21,6 +21,8 @@
#include <stdlib.h>
#include <syslog.h>
#include "containers_public.h"
#include "htmalloc.h"
int test_worker1_init(cfgl_t *cfg, void **handle);
int test_worker1_setup(void *handle, void **work_handle);
@ -63,7 +65,7 @@ int test_worker1_init(cfgl_t *cfg, void **handle) {
}
int test_worker1_setup(void *handle, void **work_handle) {
test_worker1_handle_t *twh = (test_worker1_handle_t*)malloc(sizeof(test_worker1_handle_t));
test_worker1_handle_t *twh = (test_worker1_handle_t*)htmalloc(sizeof(test_worker1_handle_t));
twh->counter = 0;
*work_handle = twh;
return 0;