From 1a9646fc9140f896500a812672742b82634c2249 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Tue, 22 Oct 2013 16:29:22 +0200 Subject: fix: uniqstr are already pointers * src/uniqstr.c (uniqstr_assert): Remove incorrect double indirection, and now useless cast. --- src/uniqstr.c | 4 ++-- 1 file 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)); -- cgit v1.2.1