diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-09-28 19:56:21 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:39:08 -0500 |
commit | 4abb4797613868e518baafb5f3618e78f67ac05c (patch) | |
tree | ad67cecd99652512a1ed82107b6aac10bd2983f7 /source4/include/smb_macros.h | |
parent | dc6735457975ada838a03de7ca26efa0cf607f99 (diff) | |
download | samba-4abb4797613868e518baafb5f3618e78f67ac05c.tar.gz samba-4abb4797613868e518baafb5f3618e78f67ac05c.tar.xz 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.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 */ |