summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkim Demaille <akim@lrde.epita.fr>2013-10-22 16:29:22 +0200
committerAkim Demaille <akim@lrde.epita.fr>2013-10-22 16:29:22 +0200
commit1a9646fc9140f896500a812672742b82634c2249 (patch)
tree6e0f6c719fb2aab6b8948907215c640ad3e856d9
parent67411a88a0668401f9583526668e3930762c55f0 (diff)
downloadbison-1a9646fc9140f896500a812672742b82634c2249.tar.gz
fix: uniqstr are already pointers
* src/uniqstr.c (uniqstr_assert): Remove incorrect double indirection, and now useless cast.
-rw-r--r--src/uniqstr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uniqstr.c b/src/uniqstr.c
index 37345dc7..b460ea7c 100644
--- a/src/uniqstr.c
+++ b/src/uniqstr.c
@@ -77,8 +77,8 @@ uniqstr_vsprintf (char const *format, ...)
void
uniqstr_assert (char const *str)
{
- uniqstr *s = hash_lookup (uniqstrs_table, str);
- if (!s || s != (uniqstr *)str)
+ uniqstr s = hash_lookup (uniqstrs_table, str);
+ if (!s || s != str)
{
error (0, 0,
"not a uniqstr: %s", quotearg (str));