svn commit: samba r14365 - in branches/SAMBA_3_0/source/nsswitch: .
jra at samba.org
jra at samba.org
Tue Mar 14 06:22:18 GMT 2006
Author: jra
Date: 2006-03-14 06:22:18 +0000 (Tue, 14 Mar 2006)
New Revision: 14365
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14365
Log:
As solaris nss includes includes.h, make sure we use
the correct malloc-macros.
Jeremy.
Modified:
branches/SAMBA_3_0/source/nsswitch/winbind_nss_solaris.c
Changeset:
Modified: branches/SAMBA_3_0/source/nsswitch/winbind_nss_solaris.c
===================================================================
--- branches/SAMBA_3_0/source/nsswitch/winbind_nss_solaris.c 2006-03-14 05:38:05 UTC (rev 14364)
+++ branches/SAMBA_3_0/source/nsswitch/winbind_nss_solaris.c 2006-03-14 06:22:18 UTC (rev 14365)
@@ -185,7 +185,7 @@
{
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_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_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;
More information about the samba-cvs
mailing list