diff options
author | Ben Elliston <bje@gnu.org> | 2007-01-30 06:13:29 +0300 |
---|---|---|
committer | Ben Elliston <bje@gnu.org> | 2007-01-30 06:13:29 +0300 |
commit | cb7ba0e119d7aab3240a6877db96c5aec43a64b1 (patch) | |
tree | 500f6b92f1028108bdd47f5a3db94deef3aee0ed /newlib | |
parent | 291b2d82913b94b15edf27c9432a349be7169463 (diff) |
* libc/search/hash.c (init_hash): Make `info' parameter const.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 4 | ||||
-rw-r--r-- | newlib/libc/search/hash.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 5a7e3e8b4..ce87ae6b0 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,7 @@ +2007-01-30 Ben Elliston <bje@au.ibm.com> + + * libc/search/hash.c (init_hash): Make `info' parameter const. + 2007-01-19 Kazunori Asayama <asayama@sm.sony.co.jp> * libc/machine/spu/c99ppe.h: Replace vector with __vector. diff --git a/newlib/libc/search/hash.c b/newlib/libc/search/hash.c index 3d919286a..348cbaa93 100644 --- a/newlib/libc/search/hash.c +++ b/newlib/libc/search/hash.c @@ -70,7 +70,7 @@ static void *hash_realloc(SEGMENT **, int, int); static int hash_seq(const DB *, DBT *, DBT *, __uint32_t); static int hash_sync(const DB *, __uint32_t); static int hdestroy(HTAB *); -static HTAB *init_hash(HTAB *, const char *, HASHINFO *); +static HTAB *init_hash(HTAB *, const char *, const HASHINFO *); static int init_htab(HTAB *, int); #if (BYTE_ORDER == LITTLE_ENDIAN) static void swap_header(HTAB *); @@ -307,7 +307,7 @@ static HTAB * init_hash(hashp, file, info) HTAB *hashp; const char *file; - HASHINFO *info; + const HASHINFO *info; { struct stat statbuf; int nelem; |