diff options
author | Tim Potter <tpot@samba.org> | 2002-01-16 02:31:53 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-01-16 02:31:53 +0000 |
commit | 978f1ba98d91851a04facef76b9ea9adaf4add3e (patch) | |
tree | fb2c4f1d8b1ca29eaeb1facc5d1bb3e3bfd107df /source3/torture/torture.c | |
parent | 9f85d4ad5f2bb5fdb7739b3f90c4bfac705393ce (diff) | |
download | samba-978f1ba98d91851a04facef76b9ea9adaf4add3e.tar.gz samba-978f1ba98d91851a04facef76b9ea9adaf4add3e.tar.xz samba-978f1ba98d91851a04facef76b9ea9adaf4add3e.zip |
Quieten some pointer cast warnings.
(This used to be commit 1906903f063de526045be68d19cf39de3c029c6f)
Diffstat (limited to 'source3/torture/torture.c')
-rw-r--r-- | source3/torture/torture.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c index c8fe9dc0cfb..b8160bb035c 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 { |