diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-11 16:21:12 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-11 16:21:12 +0000 |
commit | 8819d23adec5eb15027bcf9a8e810b950082d96e (patch) | |
tree | 4d04d71f31d1def866560bdc5a1a5bdbe2146f35 /libexec/ld.so | |
parent | ddefc6c9c302b651f42cf006970bf6def715a84f (diff) |
-1 -> MAP_FAILED.
Diffstat (limited to 'libexec/ld.so')
-rw-r--r-- | libexec/ld.so/sod.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ld.so/sod.c b/libexec/ld.so/sod.c index 52a97a24cdc..4e2771506cd 100644 --- a/libexec/ld.so/sod.c +++ b/libexec/ld.so/sod.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sod.c,v 1.1 2000/06/13 03:40:14 rahnds Exp $ */ +/* $OpenBSD: sod.c,v 1.2 2001/05/11 16:21:11 art Exp $ */ /* * Copyright (c) 1993 Paul Kranenburg * All rights reserved. @@ -147,7 +147,7 @@ _dl_maphints() hsize = PAGSIZ; addr = (void *) _dl_mmap(0, hsize, PROT_READ, MAP_COPY, hfd, 0); - if (addr == (caddr_t)-1) { + if (addr == MAP_FAILED) { _dl_close(hfd); hheader = (struct hints_header *)-1; return; |