Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/libelf/dist Change elf_hash() to take a const v...



details:   https://anonhg.NetBSD.org/src/rev/8e9bf05d6885
branches:  trunk
changeset: 750164:8e9bf05d6885
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat Dec 19 07:58:24 2009 +0000

description:
Change elf_hash() to take a const void *, rather than a const char *.

diffstat:

 external/bsd/libelf/dist/elf_hash.c |  6 +++---
 external/bsd/libelf/dist/libelf.h   |  4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r b3f327bc509d -r 8e9bf05d6885 external/bsd/libelf/dist/elf_hash.c
--- a/external/bsd/libelf/dist/elf_hash.c       Sat Dec 19 07:54:32 2009 +0000
+++ b/external/bsd/libelf/dist/elf_hash.c       Sat Dec 19 07:58:24 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: elf_hash.c,v 1.1.1.1 2009/12/19 05:43:39 thorpej Exp $ */
+/*     $NetBSD: elf_hash.c,v 1.2 2009/12/19 07:58:24 thorpej Exp $     */
 
 /*-
  * Copyright (c) 2006 Joseph Koshy
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 /* __FBSDID("$FreeBSD: src/lib/libelf/elf_hash.c,v 1.1.10.1.2.1 2009/10/25 01:10:29 kensmith Exp $"); */
-__RCSID("$NetBSD: elf_hash.c,v 1.1.1.1 2009/12/19 05:43:39 thorpej Exp $");
+__RCSID("$NetBSD: elf_hash.c,v 1.2 2009/12/19 07:58:24 thorpej Exp $");
 
 #include <libelf.h>
 
@@ -38,7 +38,7 @@
  */
 
 unsigned long
-elf_hash(const char *name)
+elf_hash(const void *name)
 {
        unsigned long h, t;
        const unsigned char *s;
diff -r b3f327bc509d -r 8e9bf05d6885 external/bsd/libelf/dist/libelf.h
--- a/external/bsd/libelf/dist/libelf.h Sat Dec 19 07:54:32 2009 +0000
+++ b/external/bsd/libelf/dist/libelf.h Sat Dec 19 07:58:24 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: libelf.h,v 1.2 2009/12/19 07:31:04 thorpej Exp $       */
+/*     $NetBSD: libelf.h,v 1.3 2009/12/19 07:58:24 thorpej Exp $       */
 
 /*-
  * Copyright (c) 2006 Joseph Koshy
@@ -220,7 +220,7 @@
 Elf_Scn                *elf_getscn(Elf *_elf, size_t _index);
 int            elf_getshnum(Elf *_elf, size_t *_dst);
 int            elf_getshstrndx(Elf *_elf, size_t *_dst);
-unsigned long  elf_hash(const char *_name);
+unsigned long  elf_hash(const void *_name);
 Elf_Kind       elf_kind(Elf *_elf);
 Elf            *elf_memory(char *_image, size_t _size);
 size_t         elf_ndxscn(Elf_Scn *_scn);



Home | Main Index | Thread Index | Old Index