diff options
author | Ulrich Drepper <drepper@redhat.com> | 2002-12-28 21:08:38 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2002-12-28 21:08:38 +0000 |
commit | b25a62a8a36541b12e8452224bb2e71f83ade815 (patch) | |
tree | 7c24ec7f6072d87f579c25c7bdf8b30c532f0bde /sysdeps/generic/readelflib.c | |
parent | 270d9d472952a8923fa8a6d9d830fea77f4b838f (diff) | |
download | glibc-b25a62a8a36541b12e8452224bb2e71f83ade815.zip glibc-b25a62a8a36541b12e8452224bb2e71f83ade815.tar.gz glibc-b25a62a8a36541b12e8452224bb2e71f83ade815.tar.bz2 |
Update.
2002-12-28 Andreas Jaeger <aj@suse.de>
* sysdeps/generic/readelflib.c (process_elf_file): Cast value to
avoid warning.
* sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
Diffstat (limited to 'sysdeps/generic/readelflib.c')
-rw-r--r-- | sysdeps/generic/readelflib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/generic/readelflib.c b/sysdeps/generic/readelflib.c index af5584c..26444ad 100644 --- a/sysdeps/generic/readelflib.c +++ b/sysdeps/generic/readelflib.c @@ -100,7 +100,7 @@ process_elf_file (const char *file_name, const char *lib, int *flag, switch (segment->p_type) { case PT_LOAD: - if (loadaddr == -1) + if (loadaddr == (ElfW(Addr)) -1) loadaddr = segment->p_vaddr - segment->p_offset; break; @@ -145,7 +145,7 @@ process_elf_file (const char *file_name, const char *lib, int *flag, } } - if (loadaddr == -1) + if (loadaddr == (ElfW(Addr)) -1) { /* Very strange. */ loadaddr = 0; |