From 95f9ec1e341990d719be89ed7c8013bcf4271d9a Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sat, 7 Feb 2004 09:53:43 +0000 Subject: Use unsigned char * pointers --- ldso/ldso/dl-elf.c | 2 +- ldso/ldso/ldso.c | 2 +- ldso/ldso/readelflib1.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'ldso') diff --git a/ldso/ldso/dl-elf.c b/ldso/ldso/dl-elf.c index 787dc3f65..6acf136c9 100644 --- a/ldso/ldso/dl-elf.c +++ b/ldso/ldso/dl-elf.c @@ -859,7 +859,7 @@ void *_dl_malloc(int size) * Align memory to 4 byte boundary. Some platforms require this, others * simply get better performance. */ - _dl_malloc_addr = (char *) (((unsigned long) _dl_malloc_addr + 3) & ~(3)); + _dl_malloc_addr = (unsigned char *) (((unsigned long) _dl_malloc_addr + 3) & ~(3)); return retval; } diff --git a/ldso/ldso/ldso.c b/ldso/ldso/ldso.c index a95b39230..287f96332 100644 --- a/ldso/ldso/ldso.c +++ b/ldso/ldso/ldso.c @@ -138,7 +138,7 @@ int _dl_debug_file = 2; #else #define _dl_debug_file 2 #endif -static char *_dl_malloc_addr, *_dl_mmap_zero; +static unsigned char *_dl_malloc_addr, *_dl_mmap_zero; static char *_dl_trace_loaded_objects = 0; static int (*_dl_elf_main) (int, char **, char **); diff --git a/ldso/ldso/readelflib1.c b/ldso/ldso/readelflib1.c index 787dc3f65..6acf136c9 100644 --- a/ldso/ldso/readelflib1.c +++ b/ldso/ldso/readelflib1.c @@ -859,7 +859,7 @@ void *_dl_malloc(int size) * Align memory to 4 byte boundary. Some platforms require this, others * simply get better performance. */ - _dl_malloc_addr = (char *) (((unsigned long) _dl_malloc_addr + 3) & ~(3)); + _dl_malloc_addr = (unsigned char *) (((unsigned long) _dl_malloc_addr + 3) & ~(3)); return retval; } -- cgit v1.2.3