mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-09 04:49:05 +00:00
FS-3110 --comment-only phase 1 to replace udns with ldns in mod_enum may need to rerun bootstrap
This commit is contained in:
1 parent
047110cd56
commit
1773b890eb
275 files changed
+115723
-8338
No files matched your search
@@ -0,0 +1,30 @@
|
||||
/* Just a replacement, if the original malloc is not
|
||||
GNU-compliant. Based on malloc.c */
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
#include <ldns/config.h>
|
||||
#endif
|
||||
#undef realloc
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
void *realloc (void*, size_t);
|
||||
void *malloc (size_t);
|
||||
|
||||
/* Changes allocation to new sizes, copies over old data.
|
||||
* if oldptr is NULL, does a malloc.
|
||||
* if size is zero, allocate 1-byte block....
|
||||
* (does not return NULL and free block)
|
||||
*/
|
||||
|
||||
void *
|
||||
rpl_realloc (void* ptr, size_t n)
|
||||
{
|
||||
if (n == 0)
|
||||
n = 1;
|
||||
if(ptr == 0) {
|
||||
return malloc(n);
|
||||
}
|
||||
return realloc(ptr, n);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user