diff options
author | Roland McGrath <roland@gnu.org> | 2002-06-16 06:25:58 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-06-16 06:25:58 +0000 |
commit | 70b973922af22ebcfa53a804ff3afad888b965de (patch) | |
tree | ef2ae82d4bdfbb416ad2a342e655343675023fe0 /benchmarks | |
parent | 5e0bf4ed171218c8ea0aa5a2d408719a163733dc (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.c | 2 |
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); } |