svn commit: samba r4093 - in trunk/examples/VFS: .

jra at samba.org jra at samba.org
Wed Dec 8 01:54:20 GMT 2004


Author: jra
Date: 2004-12-08 01:54:20 +0000 (Wed, 08 Dec 2004)
New Revision: 4093

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4093

Log:
Bring into line with new *alloc rules.
Jeremy.

Modified:
   trunk/examples/VFS/shadow_copy_test.c


Changeset:
Modified: trunk/examples/VFS/shadow_copy_test.c
===================================================================
--- trunk/examples/VFS/shadow_copy_test.c	2004-12-08 01:52:23 UTC (rev 4092)
+++ trunk/examples/VFS/shadow_copy_test.c	2004-12-08 01:54:20 UTC (rev 4093)
@@ -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