summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-06-29 05:46:51 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-06-29 05:46:51 +0000
commit31f407b4937172b7e04d8000530c6144fe79c8d9 (patch)
treed179dfd2309e50e30bfb6692fb6804b6edf51289 /lib
parent357c63ffe3d6f6375f413d3250ebc4a7c5f5b7f6 (diff)
surely not a long
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/elf_hash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/gen/elf_hash.c b/lib/libc/gen/elf_hash.c
index f8df5e46191..f09b970b516 100644
--- a/lib/libc/gen/elf_hash.c
+++ b/lib/libc/gen/elf_hash.c
@@ -26,7 +26,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: elf_hash.c,v 1.3 1996/08/19 08:22:26 tholo Exp $";
+static char rcsid[] = "$OpenBSD: elf_hash.c,v 1.4 1997/06/29 05:46:50 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -48,11 +48,11 @@ static char rcsid[] = "$OpenBSD: elf_hash.c,v 1.3 1996/08/19 08:22:26 tholo Exp
* DO NOT MODIFY THIS FUNCTION -- INVALID
* HASH TABLES WILL BE GENERATED!
*/
-unsigned long
+unsigned int
elf_hash(name)
const unsigned char *name;
{
- register unsigned long h = 0, g;
+ register unsigned int h = 0, g;
while (*name) {
h = (h << 4) + *name++;