Fixed a GCC 4 warning.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19059 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-10-13 11:37:00 +00:00
parent d12497173a
commit f5fc6356c4
1 changed files with 2 additions and 2 deletions

View File

@ -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];