projects
/
dragonfly.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Merge branch 'vendor/TNFTP'
[dragonfly.git]
/
contrib
/
ldns
/
compat
/
malloc.c
1
/* Just a replacement, if the original malloc is not
2
GNU-compliant. See autoconf documentation. */
3
4
#if HAVE_CONFIG_H
5
#include <ldns/config.h>
6
#endif
7
#undef malloc
8
9
#include <sys/types.h>
10
11
void *malloc ();
12
13
/* Allocate an N-byte block of memory from the heap.
14
If N is zero, allocate a 1-byte block. */
15
16
void *
17
rpl_malloc (size_t n)
18
{
19
if (n == 0)
20
n = 1;
21
return malloc (n);
22
}