[uClibc-cvs] uClibc/ldso/ldso dl-hash.c,1.16,1.17
Erik Andersen
andersen at uclibc.org
Tue Feb 10 11:48:00 UTC 2004
Update of /var/cvs/uClibc/ldso/ldso
In directory nail:/tmp/cvs-serv27054/ldso
Modified Files:
dl-hash.c
Log Message:
Fix function prototype to match the official ELF standard hash function
Index: dl-hash.c
===================================================================
RCS file: /var/cvs/uClibc/ldso/ldso/dl-hash.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- dl-hash.c 8 Feb 2004 10:57:59 -0000 1.16
+++ dl-hash.c 10 Feb 2004 11:47:57 -0000 1.17
@@ -57,7 +57,7 @@
/* This is the hash function that is used by the ELF linker to generate the
* hash table that each executable and library is required to have. We need
* it to decode the hash table. */
-unsigned long _dl_elf_hash(const char *name)
+unsigned long _dl_elf_hash(const unsigned char *name)
{
unsigned long hash = 0;
unsigned long tmp;
@@ -67,7 +67,7 @@
if ((tmp = hash & 0xf0000000))
hash ^= tmp >> 24;
hash &= ~tmp;
- };
+ }
return hash;
}
More information about the uClibc-cvs
mailing list