aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpphash.c
diff options
context:
space:
mode:
authorJason Merrill <jason@casey.cygnus.com>2000-03-15 21:54:47 +0000
committerJason Merrill <jason@gcc.gnu.org>2000-03-15 16:54:47 -0500
commit1a7b4c697c6ea7b132db9fdb84d3c9ff97c48e19 (patch)
tree11eba948e629a446e9fb5d17fd773638e7cc096b /gcc/cpphash.c
parent2ca19d5e9ebf19b404d6ce94f6c4035049e5f93e (diff)
downloadgcc-1a7b4c697c6ea7b132db9fdb84d3c9ff97c48e19.zip
gcc-1a7b4c697c6ea7b132db9fdb84d3c9ff97c48e19.tar.gz
gcc-1a7b4c697c6ea7b132db9fdb84d3c9ff97c48e19.tar.bz2
* cpphash.c (dump_hash_helper): Take the slot, not the element.
From-SVN: r32566
Diffstat (limited to 'gcc/cpphash.c')
-rw-r--r--gcc/cpphash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cpphash.c b/gcc/cpphash.c
index 7fe58d9..236a942 100644
--- a/gcc/cpphash.c
+++ b/gcc/cpphash.c
@@ -33,7 +33,7 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
static unsigned int hash_HASHNODE PARAMS ((const void *));
static int eq_HASHNODE PARAMS ((const void *, const void *));
static void del_HASHNODE PARAMS ((void *));
-static int dump_hash_helper PARAMS ((void *, void *));
+static int dump_hash_helper PARAMS ((void **, void *));
static int comp_def_part PARAMS ((int, U_CHAR *, int, U_CHAR *,
int, int));
@@ -1722,10 +1722,10 @@ _cpp_dump_definition (pfile, sym, len, defn)
/* Dump out the hash table. */
static int
dump_hash_helper (h, p)
- void *h;
+ void **h;
void *p;
{
- HASHNODE *hp = (HASHNODE *)h;
+ HASHNODE *hp = (HASHNODE *)*h;
cpp_reader *pfile = (cpp_reader *)p;
if (hp->type == T_MACRO)