diff options
author | 2002-07-24 00:13:25 +0000 | |
---|---|---|
committer | 2002-07-24 00:13:25 +0000 | |
commit | fe2ee3f68e56285571a183636d2450652540db1c (patch) | |
tree | d5abe7f28de5d9f4b135065e22c35dac77812497 | |
parent | make _dl_mmap() return void * like others (diff) | |
download | wireguard-openbsd-fe2ee3f68e56285571a183636d2450652540db1c.tar.xz wireguard-openbsd-fe2ee3f68e56285571a183636d2450652540db1c.zip |
cope with _dl_mmap() returning void *
-rw-r--r-- | libexec/ld.so/library.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/ld.so/library.c b/libexec/ld.so/library.c index e6c6bc1386f..03ca9251ec8 100644 --- a/libexec/ld.so/library.c +++ b/libexec/ld.so/library.c @@ -1,4 +1,4 @@ -/* $OpenBSD: library.c,v 1.17 2002/07/23 23:56:31 mickey Exp $ */ +/* $OpenBSD: library.c,v 1.18 2002/07/24 00:13:25 deraadt Exp $ */ /* * Copyright (c) 2002 Dale Rahn @@ -437,7 +437,7 @@ _dl_tryload_shlib(const char *libname, int type) next_load->start = start; next_load->size = size; next_load->prot = PFLAGS(phdp->p_flags); - if (_dl_check_error(res)) { + if (_dl_check_error((long)res)) { _dl_printf("%s: rtld mmap failed mapping %s.\n", _dl_progname, libname); _dl_close(libfile); @@ -456,7 +456,7 @@ _dl_tryload_shlib(const char *libname, int type) res = _dl_mmap(start, size, PFLAGS(phdp->p_flags), MAP_FIXED|MAP_PRIVATE|MAP_ANON, -1, 0); - if (_dl_check_error(res)) { + if (_dl_check_error((long)res)) { _dl_printf("%s: rtld mmap failed mapping %s.\n", _dl_progname, libname); _dl_close(libfile); |