tree-wide: Fix declaration/definition parameter name mismatches

This commit is contained in:
Daan De Meyer
2025-11-26 19:02:31 +09:00
committed by Yu Watanabe
parent a8374a7607
commit 6a9f0641cd
227 changed files with 821 additions and 675 deletions
+5 -5
View File
@@ -31,10 +31,10 @@ DEFINE_HASH_OPS_FULL(
char, string_hash_func, string_compare_func, free,
char*, strv_free);
void path_hash_func(const char *q, struct siphash *state) {
void path_hash_func(const char *p, struct siphash *state) {
bool add_slash = false;
assert(q);
assert(p);
assert(state);
/* Calculates a hash for a path in a way this duplicate inner slashes don't make a differences, and also
@@ -43,14 +43,14 @@ void path_hash_func(const char *q, struct siphash *state) {
* which begin in a slash or not) will hash differently though. */
/* if path is absolute, add one "/" to the hash. */
if (path_is_absolute(q))
if (path_is_absolute(p))
siphash24_compress_byte('/', state);
for (;;) {
const char *e;
int r;
r = path_find_first_component(&q, true, &e);
r = path_find_first_component(&p, true, &e);
if (r == 0)
return;
@@ -59,7 +59,7 @@ void path_hash_func(const char *q, struct siphash *state) {
if (r < 0) {
/* if a component is invalid, then add remaining part as a string. */
string_hash_func(q, state);
string_hash_func(p, state);
return;
}