summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1997-06-29 05:46:50 +0000
committerderaadt <deraadt@openbsd.org>1997-06-29 05:46:50 +0000
commit803b1a2d5ae40b711e2043e2a276f2bb5f3a16ec (patch)
tree194a66cfcca9411a76bf1ad3040a660fb0395676 /lib
parentlast of the setlocale() vs locale.h oops's, I hope (diff)
downloadwireguard-openbsd-803b1a2d5ae40b711e2043e2a276f2bb5f3a16ec.tar.xz
wireguard-openbsd-803b1a2d5ae40b711e2043e2a276f2bb5f3a16ec.zip
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++;