summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-01-16 02:31:53 +0000
committerTim Potter <tpot@samba.org>2002-01-16 02:31:53 +0000
commit1906903f063de526045be68d19cf39de3c029c6f (patch)
treea0d331f4b2807741bd5a3fd63ab79ef78205c4b0
parent7e876057d5e392f85e6fdb0f2c233b0fe76df688 (diff)
downloadsamba-1906903f063de526045be68d19cf39de3c029c6f.tar.gz
samba-1906903f063de526045be68d19cf39de3c029c6f.tar.xz
samba-1906903f063de526045be68d19cf39de3c029c6f.zip
Quieten some pointer cast warnings.
-rw-r--r--source/torture/torture.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/torture/torture.c b/source/torture/torture.c
index c8fe9dc0cfb..b8160bb035c 100644
--- a/source/torture/torture.c
+++ b/source/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 {