aboutsummaryrefslogtreecommitdiff
path: root/demangle.c
diff options
context:
space:
mode:
authorPeter Wu <lekensteyn@gmail.com>2013-09-26 00:55:56 +0200
committerPetr Machata <pmachata@redhat.com>2013-09-26 13:29:04 +0200
commit97485501f87e5452bc49721003ebfb9717f497b6 (patch)
tree88c72953c5f2f61a822660fb1ce5f4f9a658de06 /demangle.c
parentc391cea99973d5fac82bf9b78ff72dd428875721 (diff)
downloadltrace-97485501f87e5452bc49721003ebfb9717f497b6.tar.gz
Fix clang warning (-Wduplicate-decl-specifier)
DICT_INIT defines its key type as constant already, no need to duplicate that in callers of DICT_INIT. Signed-off-by: Peter Wu <lekensteyn@gmail.com>
Diffstat (limited to 'demangle.c')
-rw-r--r--demangle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demangle.c b/demangle.c
index 2d3f195..5b9dcfc 100644
--- a/demangle.c
+++ b/demangle.c
@@ -47,7 +47,7 @@ my_demangle(const char *function_name) {
if (name_cache == NULL) {
name_cache = malloc(sizeof(*name_cache));
if (name_cache != NULL)
- DICT_INIT(name_cache, const char *, const char *,
+ DICT_INIT(name_cache, char *, const char *,
dict_hash_string, dict_eq_string, NULL);
}