mirror of
https://github.com/opnsense/src.git
synced 2026-05-25 02:35:01 -04:00
parent
47204fd342
commit
accbb97f87
2 changed files with 11 additions and 0 deletions
|
|
@ -36,6 +36,16 @@ __FBSDID("$FreeBSD$");
|
|||
|
||||
#include "mem.h"
|
||||
|
||||
void*
|
||||
sort_calloc(size_t nb, size_t size)
|
||||
{
|
||||
void *ptr;
|
||||
|
||||
if ((ptr = calloc(nb, size)) == NULL)
|
||||
err(2, NULL);
|
||||
return (ptr);
|
||||
}
|
||||
|
||||
/*
|
||||
* malloc() wrapper.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@
|
|||
/*
|
||||
* mem.c
|
||||
*/
|
||||
void *sort_calloc(size_t, size_t);
|
||||
void *sort_malloc(size_t);
|
||||
void sort_free(const void *ptr);
|
||||
void *sort_realloc(void *, size_t);
|
||||
|
|
|
|||
Loading…
Reference in a new issue