summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-07-02 22:30:00 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-07-02 22:30:00 +0200
commit10c5d637741dba758f1f3f41ac1347ee55cdf162 (patch)
treee670fe080ec7bc0067cd3eb84405c80a816ba0f9 /solenv
parent171936092b07a17219ef2d9132aff0033b35d8cc (diff)
loplugin:casttovoid: solenv
Change-Id: Icd4328eed3cd682c98fc9be7368fcbac55a94edf
Diffstat (limited to 'solenv')
-rw-r--r--solenv/bin/concat-deps.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/solenv/bin/concat-deps.c b/solenv/bin/concat-deps.c
index 88144465eda7..b174033d63ad 100644
--- a/solenv/bin/concat-deps.c
+++ b/solenv/bin/concat-deps.c
@@ -513,16 +513,17 @@ unsigned int i;
}
}
-#ifdef HASH_STAT
static inline int compare_key(struct hash* hash, const char* a, const char* b, int len, int* cost)
{
+#ifdef HASH_STAT
*cost += 1;
hash->memcmp += 1;
- return memcmp(a,b, len);
-}
#else
-#define compare_key(h,a,b,l,c) memcmp(a,b,l)
+ (void) hash;
+ (void) cost;
#endif
+ return memcmp(a,b, len);
+}
/* a customized hash_store function that just store the key and return
* TRUE if the key was effectively stored, or FALSE if the key was already there