1 #include <sys/types.h> 2 #include <sys/malloc.h> 3 4 /* 5 * Space allocation and freeing routines for use by zlib routines. 6 */ 7 void * 8 zcalloc(notused, items, size) 9 void *notused; 10 u_int items, size; 11 { 12 return mallocarray(items, size, M_DEVBUF, M_NOWAIT); 13 } 14 15 void 16 zcfree(notused, ptr) 17 void *notused; 18 void *ptr; 19 { 20 free(ptr, M_DEVBUF, 0); 21 } 22