mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-12 14:21:18 +08:00
(_dl_unload_cache): Cast first argument of munmap.
This commit is contained in:
parent
d61137008f
commit
3b0d7dad72
@ -19,6 +19,7 @@
|
||||
|
||||
#include <link.h>
|
||||
#include <stddef.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/mman.h>
|
||||
|
||||
/* System-dependent function to read a file's whole contents
|
||||
@ -114,7 +115,7 @@ _dl_unload_cache (void)
|
||||
{
|
||||
if (cache != NULL && cache != (struct cache_file *) -1)
|
||||
{
|
||||
__munmap (cache, cachesize);
|
||||
__munmap ((caddr_t) cache, cachesize);
|
||||
cache = NULL;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user