diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-12-04 09:30:38 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:06:20 -0500 |
commit | 2f9e170f45e128eb6ab6bd97c9c8b40dcd9a97fa (patch) | |
tree | b16853d79b72ea2984e8c67c6f7f800ca9ff0807 /source4/include | |
parent | fbb5a6a0fabd3d7878f2fa95db3eef3e8504b6d2 (diff) | |
download | samba-2f9e170f45e128eb6ab6bd97c9c8b40dcd9a97fa.tar.gz samba-2f9e170f45e128eb6ab6bd97c9c8b40dcd9a97fa.tar.bz2 samba-2f9e170f45e128eb6ab6bd97c9c8b40dcd9a97fa.zip |
r4058: added a type safe version of smb_xmalloc()
(This used to be commit 1235afa5fe3a396cd7a180cbc500834a30fbaa80)
Diffstat (limited to 'source4/include')
-rw-r--r-- | source4/include/includes.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/include/includes.h b/source4/include/includes.h index 6335780b89..ad24ff676d 100644 --- a/source4/include/includes.h +++ b/source4/include/includes.h @@ -321,3 +321,8 @@ int asprintf(char **,const char *, ...) PRINTF_ATTRIBUTE(2,3); #endif /* _INCLUDES_H */ +/* + type safe varient of smb_xmalloc() +*/ +#define smb_xmalloc_p(type) (type *)smb_xmalloc(sizeof(type)) + |