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:
@@ -158,7 +158,7 @@ dequeue_image(image_queue_t *queue, image_t *image)
|
|||||||
|
|
||||||
|
|
||||||
static uint32
|
static uint32
|
||||||
elf_hash(const uchar *name)
|
elf_hash(const uint8 *name)
|
||||||
{
|
{
|
||||||
uint32 hash = 0;
|
uint32 hash = 0;
|
||||||
uint32 temp;
|
uint32 temp;
|
||||||
@@ -707,7 +707,7 @@ find_symbol(image_t *image, const char *name, int32 type)
|
|||||||
if (image->dynamic_ptr == NULL)
|
if (image->dynamic_ptr == NULL)
|
||||||
return 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]) {
|
for (i = HASHBUCKETS(image)[hash]; i != STN_UNDEF; i = HASHCHAINS(image)[i]) {
|
||||||
struct Elf32_Sym *symbol = &image->syms[i];
|
struct Elf32_Sym *symbol = &image->syms[i];
|
||||||
|
|||||||
Reference in New Issue
Block a user