diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-12-10 01:18:36 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-12-10 01:18:36 +0000 |
commit | a352ab4ca56142647227c3d2943adfa455679ada (patch) | |
tree | 7a6d107bf2bfc8a08d490a34f7ec8ac456d0c5b8 /locale/programs/simple-hash.c | |
parent | ba2dfdef58ae9dbf71b18a5cfce3e9f3ebb29b58 (diff) | |
download | glibc-a352ab4ca56142647227c3d2943adfa455679ada.tar.gz glibc-a352ab4ca56142647227c3d2943adfa455679ada.tar.xz glibc-a352ab4ca56142647227c3d2943adfa455679ada.zip |
Add const to first parameter of find_entry, iterate_table, and lookup.
Diffstat (limited to 'locale/programs/simple-hash.c')
-rw-r--r-- | locale/programs/simple-hash.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/locale/programs/simple-hash.c b/locale/programs/simple-hash.c index f8430ff92e..e501038a1a 100644 --- a/locale/programs/simple-hash.c +++ b/locale/programs/simple-hash.c @@ -70,7 +70,7 @@ hash_entry; /* Prototypes for local functions. */ static void insert_entry_2 (hash_table *htab, const void *key, size_t keylen, unsigned long hval, size_t idx, void *data); -static size_t lookup (hash_table *htab, const void *key, size_t keylen, +static size_t lookup (const hash_table *htab, const void *key, size_t keylen, unsigned long int hval); static unsigned long compute_hashval (const void *key, size_t keylen); static int is_prime (unsigned long int candidate); @@ -188,7 +188,7 @@ insert_entry_2 (htab, key, keylen, hval, idx, data) int find_entry (htab, key, keylen, result) - hash_table *htab; + const hash_table *htab; const void *key; size_t keylen; void **result; @@ -224,7 +224,7 @@ set_entry (htab, key, keylen, newval) int iterate_table (htab, ptr, key, keylen, data) - hash_table *htab; + const hash_table *htab; void **ptr; const void **key; size_t *keylen; @@ -256,7 +256,7 @@ iterate_table (htab, ptr, key, keylen, data) static size_t lookup (htab, key, keylen, hval) - hash_table *htab; + const hash_table *htab; const void *key; size_t keylen; unsigned long int hval; |