summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/util/xfile.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/util/xfile.c b/lib/util/xfile.c
index 7cfb68018e..36d56e59ff 100644
--- a/lib/util/xfile.c
+++ b/lib/util/xfile.c
@@ -38,9 +38,7 @@
#if _SAMBA_BUILD_ == 3
#undef malloc
-#define malloc SMB_MALLOC
-#undef malloc_p
-#define malloc_p SMB_MALLOC_P
+#define malloc_p(type) malloc(sizeof(type))
#endif
#define XBUFSIZE BUFSIZ