From 978f1ba98d91851a04facef76b9ea9adaf4add3e Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Wed, 16 Jan 2002 02:31:53 +0000 Subject: Quieten some pointer cast warnings. (This used to be commit 1906903f063de526045be68d19cf39de3c029c6f) --- source3/torture/torture.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source3/torture/torture.c b/source3/torture/torture.c index c8fe9dc0cf..b8160bb035 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -2984,8 +2984,10 @@ static double create_procs(BOOL (*fn)(int), BOOL *result) return -1; } - memset((void *)child_status, 0, sizeof(pid_t)*nprocs); - memset((void *)child_status_out, True, sizeof(BOOL)*nprocs); + for (i = 0; i < nprocs; i++) { + child_status[i] = 0; + child_status_out[i] = True; + } start_timer(); @@ -3055,7 +3057,6 @@ static double create_procs(BOOL (*fn)(int), BOOL *result) return end_timer(); } - #define FLAG_MULTIPROC 1 static struct { -- cgit