1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

s3-registry: use some prs macros to the only place where they are used.

Guenther
This commit is contained in:
Günther Deschner
2010-07-16 02:20:34 +02:00
parent 196b4e8342
commit 914fd13edd
2 changed files with 6 additions and 4 deletions

View File

@ -273,8 +273,6 @@ NULL returns on zero request. JRA.
#if defined(PARANOID_MALLOC_CHECKER)
#define PRS_ALLOC_MEM(ps, type, count) (type *)prs_alloc_mem_((ps),sizeof(type),(count))
/* Get medieval on our ass about malloc.... */
/* Restrictions on malloc/realloc/calloc. */
@ -311,8 +309,6 @@ NULL returns on zero request. JRA.
#else
#define PRS_ALLOC_MEM(ps, type, count) (type *)prs_alloc_mem((ps),sizeof(type),(count))
/* Regular malloc code. */
#define SMB_MALLOC(s) malloc(s)

View File

@ -32,6 +32,12 @@
*
******************************************************************/
#if defined(PARANOID_MALLOC_CHECKER)
#define PRS_ALLOC_MEM(ps, type, count) (type *)prs_alloc_mem_((ps),sizeof(type),(count))
#else
#define PRS_ALLOC_MEM(ps, type, count) (type *)prs_alloc_mem((ps),sizeof(type),(count))
#endif
/*******************************************************************
Reads or writes an NTTIME structure.
********************************************************************/