diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2000-04-24 22:29:09 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2000-04-24 22:29:09 +0000 |
commit | 4feeaae33e02d5185103c75556b8d7a33cee0f18 (patch) | |
tree | 6610402e57e2d9d9130255a3ff10eaa5308e7259 | |
parent | 9c603af2ac5c36e9fe18453b096492b95ceeec24 (diff) | |
download | gcc-4feeaae33e02d5185103c75556b8d7a33cee0f18.zip gcc-4feeaae33e02d5185103c75556b8d7a33cee0f18.tar.gz gcc-4feeaae33e02d5185103c75556b8d7a33cee0f18.tar.bz2 |
hashtab.c (hash_pointer, eq_pointer): Make definition static to match prototype.
* hashtab.c (hash_pointer, eq_pointer): Make definition static to
match prototype.
(htab_expand): Cast the return value of xcalloc.
From-SVN: r33391
-rw-r--r-- | libiberty/ChangeLog | 6 | ||||
-rw-r--r-- | libiberty/hashtab.c | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 25215d3..65e71bb 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,9 @@ +2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * hashtab.c (hash_pointer, eq_pointer): Make definition static to + match prototype. + (htab_expand): Cast the return value of xcalloc. + 2000-04-24 Mark Mitchell <mark@codesourcery.com> * hashtab.c (hash_pointer): New function. diff --git a/libiberty/hashtab.c b/libiberty/hashtab.c index 9cde177..fa0ffac 100644 --- a/libiberty/hashtab.c +++ b/libiberty/hashtab.c @@ -98,7 +98,7 @@ higher_prime_number (n) /* Returns a hash code for P. */ -hashval_t +static hashval_t hash_pointer (p) const void *p; { @@ -107,7 +107,7 @@ hash_pointer (p) /* Returns non-zero if P1 and P2 are equal. */ -int +static int eq_pointer (p1, p2) const void *p1; const void *p2; @@ -224,7 +224,7 @@ htab_expand (htab) olimit = oentries + htab->size; htab->size = higher_prime_number (htab->size * 2); - htab->entries = xcalloc (htab->size, sizeof (void **)); + htab->entries = (void **) xcalloc (htab->size, sizeof (void **)); htab->n_elements -= htab->n_deleted; htab->n_deleted = 0; |