svn commit: samba r4092 - in branches/SAMBA_3_0/examples/VFS: .
jra at samba.org
jra at samba.org
Wed Dec 8 01:52:24 GMT 2004
Author: jra
Date: 2004-12-08 01:52:23 +0000 (Wed, 08 Dec 2004)
New Revision: 4092
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4092
Log:
Bring into line with new *alloc rules.
Jeremy.
Modified:
branches/SAMBA_3_0/examples/VFS/shadow_copy_test.c
Changeset:
Modified: branches/SAMBA_3_0/examples/VFS/shadow_copy_test.c
===================================================================
--- branches/SAMBA_3_0/examples/VFS/shadow_copy_test.c 2004-12-08 00:33:38 UTC (rev 4091)
+++ branches/SAMBA_3_0/examples/VFS/shadow_copy_test.c 2004-12-08 01:52:23 UTC (rev 4092)
@@ -58,7 +58,7 @@
shadow_copy_data->num_volumes = num;
if (labels) {
- shadow_copy_data->labels = (SHADOW_COPY_LABEL *)talloc_zero(shadow_copy_data->mem_ctx,(num)*sizeof(SHADOW_COPY_LABEL));
+ shadow_copy_data->labels = TALLOC_ZERO_ARRAY(shadow_copy_data->mem_ctx,SHADOW_COPY_LABEL,num);
for (i=0;i<num;i++) {
snprintf(shadow_copy_data->labels[i], sizeof(SHADOW_COPY_LABEL), "@GMT-2003.08.05-12.%02u.00",i);
}
More information about the samba-cvs
mailing list