summaryrefslogtreecommitdiff
path: root/source4/include/smb_macros.h
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-09-28 19:56:21 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:39:08 -0500
commit4abb4797613868e518baafb5f3618e78f67ac05c (patch)
treead67cecd99652512a1ed82107b6aac10bd2983f7 /source4/include/smb_macros.h
parentdc6735457975ada838a03de7ca26efa0cf607f99 (diff)
downloadsamba-4abb4797613868e518baafb5f3618e78f67ac05c.tar.gz
samba-4abb4797613868e518baafb5f3618e78f67ac05c.tar.bz2
samba-4abb4797613868e518baafb5f3618e78f67ac05c.zip
r10588: Remove more unused files, macros
(This used to be commit d2f80c0457f7404b2cac9df59a400130e9ad025f)
Diffstat (limited to 'source4/include/smb_macros.h')
-rw-r--r--source4/include/smb_macros.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/include/smb_macros.h b/source4/include/smb_macros.h
index f5ac3ac96d..f1c62ab024 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 */