summaryrefslogtreecommitdiffstats
path: root/benchmarks
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2004-12-08 19:40:33 +0000
committerpjd <pjd@FreeBSD.org>2004-12-08 19:40:33 +0000
commitf10d44d69b4be10e34db4579f9be25be47ab1b1d (patch)
treef79873f634adbeb4033b6e34011f17a8d1428914 /benchmarks
parent07505b0b826930a5f7bd0468985622fa0aea6f7e (diff)
downloadFreeBSD-ports-f10d44d69b4be10e34db4579f9be25be47ab1b1d.zip
FreeBSD-ports-f10d44d69b4be10e34db4579f9be25be47ab1b1d.tar.gz
Fix compilation on sparc64.
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/raidtest/files/raidtest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmarks/raidtest/files/raidtest.c b/benchmarks/raidtest/files/raidtest.c
index f5eb962..2c877f9 100644
--- a/benchmarks/raidtest/files/raidtest.c
+++ b/benchmarks/raidtest/files/raidtest.c
@@ -322,8 +322,8 @@ raidtest_test(int argc, char *argv[])
if (procs == NULL) {
close(fdf);
close(fdd);
- errx(EXIT_FAILURE, "Cannot allocate %u bytes of memory.",
- sizeof(pid_t) * nprocs);
+ errx(EXIT_FAILURE, "Cannot allocate %zu bytes of memory.",
+ sizeof(pid_t) * (size_t)nprocs);
}
iorqs =
malloc((sb.st_size / sizeof(struct iorec)) * sizeof(struct ioreq));
OpenPOWER on IntegriCloud