diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-24 22:29:09 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-24 22:29:09 +0000 |
commit | 8afd414563ab5197c91f18051557e7c8b33d9eee (patch) | |
tree | 6610402e57e2d9d9130255a3ff10eaa5308e7259 /libiberty/hashtab.c | |
parent | c7148c3cc66d9764a192860082125c95c86f67f9 (diff) | |
download | gcc-8afd414563ab5197c91f18051557e7c8b33d9eee.tar.gz |
* hashtab.c (hash_pointer, eq_pointer): Make definition static to
match prototype.
(htab_expand): Cast the return value of xcalloc.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33391 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/hashtab.c')
-rw-r--r-- | libiberty/hashtab.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libiberty/hashtab.c b/libiberty/hashtab.c index 9cde1770349..fa0ffac22fb 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; |