summaryrefslogtreecommitdiff
path: root/lib/util/memory.h
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-18 14:12:56 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-18 14:12:56 +0200
commitfcce58cc61e4ed66de7d81064f40ff5a4e5b6346 (patch)
treebbf9d0917acffee32ce1f830301c9e02804691cf /lib/util/memory.h
parent3189d141522d7d710fa8c7f58e92bffd854088ce (diff)
downloadsamba-fcce58cc61e4ed66de7d81064f40ff5a4e5b6346.tar.gz
samba-fcce58cc61e4ed66de7d81064f40ff5a4e5b6346.tar.bz2
samba-fcce58cc61e4ed66de7d81064f40ff5a4e5b6346.zip
Add extra argument free_on_fail to realloc_array() in Samba 4, as used by Samba 3.
Diffstat (limited to 'lib/util/memory.h')
-rw-r--r--lib/util/memory.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/util/memory.h b/lib/util/memory.h
index 29dd75060f..de01492aa2 100644
--- a/lib/util/memory.h
+++ b/lib/util/memory.h
@@ -40,20 +40,12 @@
/**
* Allocate an array of elements of one data type. Does type-checking.
*/
-#if _SAMBA_BUILD_ == 3
#define malloc_array_p(type, count) (type *)realloc_array(NULL, sizeof(type), count, false)
-#else
-#define malloc_array_p(type, count) (type *)realloc_array(NULL, sizeof(type), count)
-#endif
/**
* Resize an array of elements of one data type. Does type-checking.
*/
-#if _SAMBA_BUILD_ == 3
#define realloc_p(p, type, count) (type *)realloc_array(p, sizeof(type), count, false)
-#else
-#define realloc_p(p, type, count) (type *)realloc_array(p, sizeof(type), count)
-#endif
/**
* zero a structure