summaryrefslogtreecommitdiff
path: root/source3/torture
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
commit978f1ba98d91851a04facef76b9ea9adaf4add3e (patch)
treefb2c4f1d8b1ca29eaeb1facc5d1bb3e3bfd107df /source3/torture
parent9f85d4ad5f2bb5fdb7739b3f90c4bfac705393ce (diff)
downloadsamba-978f1ba98d91851a04facef76b9ea9adaf4add3e.tar.gz
samba-978f1ba98d91851a04facef76b9ea9adaf4add3e.tar.bz2
samba-978f1ba98d91851a04facef76b9ea9adaf4add3e.zip
Quieten some pointer cast warnings.
(This used to be commit 1906903f063de526045be68d19cf39de3c029c6f)
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/torture.c7
1 files 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 {