OSDN Git Service

Use unsigned char * pointers
authorEric Andersen <andersen@codepoet.org>
Sat, 7 Feb 2004 09:53:43 +0000 (09:53 -0000)
committerEric Andersen <andersen@codepoet.org>
Sat, 7 Feb 2004 09:53:43 +0000 (09:53 -0000)
ldso/ldso/dl-elf.c
ldso/ldso/ldso.c
ldso/ldso/readelflib1.c

index 787dc3f..6acf136 100644 (file)
@@ -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;
 }
 
index a95b392..287f963 100644 (file)
@@ -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 **);
index 787dc3f..6acf136 100644 (file)
@@ -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;
 }