fix: uniqstr are already pointers

* src/uniqstr.c (uniqstr_assert): Remove incorrect double indirection,
and now useless cast.
This commit is contained in:
Akim Demaille
2013-10-22 16:29:22 +02:00
parent 67411a88a0
commit 1a9646fc91

View File

@@ -77,8 +77,8 @@ uniqstr_vsprintf (char const *format, ...)
void void
uniqstr_assert (char const *str) uniqstr_assert (char const *str)
{ {
uniqstr *s = hash_lookup (uniqstrs_table, str); uniqstr s = hash_lookup (uniqstrs_table, str);
if (!s || s != (uniqstr *)str) if (!s || s != str)
{ {
error (0, 0, error (0, 0,
"not a uniqstr: %s", quotearg (str)); "not a uniqstr: %s", quotearg (str));