summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-06-16 06:25:58 +0000
committerRoland McGrath <roland@gnu.org>2002-06-16 06:25:58 +0000
commit70b973922af22ebcfa53a804ff3afad888b965de (patch)
treeef2ae82d4bdfbb416ad2a342e655343675023fe0 /benchmarks
parent5e0bf4ed171218c8ea0aa5a2d408719a163733dc (diff)
2002-06-15 Roland McGrath <roland@frob.com>
* forks.c (main): Fix cast of sbrk result.
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/forks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/forks.c b/benchmarks/forks.c
index 30f01f72..4f500d9a 100644
--- a/benchmarks/forks.c
+++ b/benchmarks/forks.c
@@ -40,7 +40,7 @@ main(argc, argv)
time (&starttime);
cp = (char *)sbrk(brksize);
- if ((int)cp == -1) {
+ if (cp == (void *)-1) {
perror("sbrk");
exit(4);
}