From f5fc6356c40468a1d66b8d596d2f530cd7f86fe1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 13 Oct 2006 11:37:00 +0000 Subject: [PATCH] Fixed a GCC 4 warning. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19059 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/runtime_loader/elf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/runtime_loader/elf.c b/src/system/runtime_loader/elf.c index da319dc8f7..fd4e7cd70a 100644 --- a/src/system/runtime_loader/elf.c +++ b/src/system/runtime_loader/elf.c @@ -158,7 +158,7 @@ dequeue_image(image_queue_t *queue, image_t *image) static uint32 -elf_hash(const uchar *name) +elf_hash(const uint8 *name) { uint32 hash = 0; uint32 temp; @@ -707,7 +707,7 @@ find_symbol(image_t *image, const char *name, int32 type) if (image->dynamic_ptr == NULL) return NULL; - hash = elf_hash(name) % HASHTABSIZE(image); + hash = elf_hash((uint8 *)name) % HASHTABSIZE(image); for (i = HASHBUCKETS(image)[hash]; i != STN_UNDEF; i = HASHCHAINS(image)[i]) { struct Elf32_Sym *symbol = &image->syms[i];