diff options
author | Peter Wu <lekensteyn@gmail.com> | 2013-09-26 00:55:56 +0200 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2013-09-26 13:29:04 +0200 |
commit | 97485501f87e5452bc49721003ebfb9717f497b6 (patch) | |
tree | 88c72953c5f2f61a822660fb1ce5f4f9a658de06 /prototype.c | |
parent | c391cea99973d5fac82bf9b78ff72dd428875721 (diff) | |
download | ltrace-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 'prototype.c')
-rw-r--r-- | prototype.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/prototype.c b/prototype.c index 60aa5c6..24e2625 100644 --- a/prototype.c +++ b/prototype.c @@ -136,10 +136,10 @@ named_type_destroy(struct named_type *named) void protolib_init(struct protolib *plib) { - DICT_INIT(&plib->prototypes, const char *, struct prototype, + DICT_INIT(&plib->prototypes, char *, struct prototype, dict_hash_string, dict_eq_string, NULL); - DICT_INIT(&plib->named_types, const char *, struct named_type, + DICT_INIT(&plib->named_types, char *, struct named_type, dict_hash_string, dict_eq_string, NULL); VECT_INIT(&plib->imports, struct protolib *); @@ -444,7 +444,7 @@ add_imports_cb(struct opt_F_t *entry, void *data) int protolib_cache_init(struct protolib_cache *cache, struct protolib *import) { - DICT_INIT(&cache->protolibs, const char *, struct protolib *, + DICT_INIT(&cache->protolibs, char *, struct protolib *, dict_hash_string, dict_eq_string, NULL); protolib_init(&cache->imports); |