From 4abb4797613868e518baafb5f3618e78f67ac05c Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 28 Sep 2005 19:56:21 +0000 Subject: r10588: Remove more unused files, macros (This used to be commit d2f80c0457f7404b2cac9df59a400130e9ad025f) --- source4/include/smb_macros.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source4/include/smb_macros.h') diff --git a/source4/include/smb_macros.h b/source4/include/smb_macros.h index f5ac3ac96d2..f1c62ab024c 100644 --- a/source4/include/smb_macros.h +++ b/source4/include/smb_macros.h @@ -70,4 +70,8 @@ #define SAFE_FREE(x) do { if ((x) != NULL) {free(discard_const_p(void *, (x))); (x)=NULL;} } while(0) #endif +#define malloc_p(type) (type *)malloc(sizeof(type)) +#define malloc_array_p(type, count) (type *)realloc_array(NULL, sizeof(type), count) +#define realloc_p(p, type, count) (type *)realloc_array(p, sizeof(type), count) + #endif /* _SMB_MACROS_H */ -- cgit