From 9c046e7ad91911257f530b7ee2fe416a76a66bb7 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 14 Mar 2006 06:22:18 +0000 Subject: r14365: As solaris nss includes includes.h, make sure we use the correct malloc-macros. Jeremy. (This used to be commit 412dc6f5dbc796126b94f3809fe660afac5d3c2a) --- source3/nsswitch/winbind_nss_solaris.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/nsswitch') diff --git a/source3/nsswitch/winbind_nss_solaris.c b/source3/nsswitch/winbind_nss_solaris.c index b94b444fb4..04f464a798 100644 --- a/source3/nsswitch/winbind_nss_solaris.c +++ b/source3/nsswitch/winbind_nss_solaris.c @@ -185,7 +185,7 @@ _nss_winbind_passwd_constr (const char* db_name, { nss_backend_t *be; - if(!(be = (nss_backend_t*) malloc(sizeof(nss_backend_t))) ) + if(!(be = SMB_MALLOC_P(nss_backend_t)) ) return NULL; be->ops = passwd_ops; @@ -329,7 +329,7 @@ _nss_winbind_group_constr (const char* db_name, { nss_backend_t* be; - if(!(be = (nss_backend_t*) malloc(sizeof(nss_backend_t))) ) + if(!(be = SMB_MALLOC_P(nss_backend_t)) ) return NULL; be->ops = group_ops; @@ -580,7 +580,7 @@ _nss_winbind_common_constr (nss_backend_op_t ops[], int n_ops) { nss_backend_t* be; - if(!(be = (nss_backend_t*) malloc(sizeof(nss_backend_t))) ) + if(!(be = SMB_MALLOC_P(nss_backend_t)) ) return NULL; be->ops = ops; -- cgit