summaryrefslogtreecommitdiff
path: root/gcc/plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/plugin.c')
-rw-r--r--gcc/plugin.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/plugin.c b/gcc/plugin.c
index d924438c940..6a7654f0464 100644
--- a/gcc/plugin.c
+++ b/gcc/plugin.c
@@ -66,16 +66,16 @@ const char **plugin_event_name = plugin_event_name_init;
struct event_hasher : typed_noop_remove <const char *>
{
- typedef const char *value_type;
- typedef const char *compare_type;
- static inline hashval_t hash (const value_type *);
- static inline bool equal (const value_type *, const compare_type *);
+ typedef const char **value_type;
+ typedef const char **compare_type;
+ static inline hashval_t hash (const char **);
+ static inline bool equal (const char **, const char **);
};
/* Helper function for the event hash table that hashes the entry V. */
inline hashval_t
-event_hasher::hash (const value_type *v)
+event_hasher::hash (const char **v)
{
return htab_hash_string (*v);
}
@@ -84,7 +84,7 @@ event_hasher::hash (const value_type *v)
existing entry (S1) with the given string (S2). */
inline bool
-event_hasher::equal (const value_type *s1, const compare_type *s2)
+event_hasher::equal (const char **s1, const char **s2)
{
return !strcmp (*s1, *s2);
}