From 3a5c777b29f75cb5b129eaec8d8e7a4d5e7024fe Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 8 Feb 2018 17:37:56 +0100 Subject: [PATCH] hash-funcs: remove redundant definition of devt_hash_ops We should assign a value only in the .c file, not in both the .c and .h file. --- src/basic/hash-funcs.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/basic/hash-funcs.h b/src/basic/hash-funcs.h index 945b4c251..c31ef0cc3 100644 --- a/src/basic/hash-funcs.h +++ b/src/basic/hash-funcs.h @@ -36,12 +36,9 @@ void string_hash_func(const void *p, struct siphash *state); int string_compare_func(const void *a, const void *b) _pure_; extern const struct hash_ops string_hash_ops; -void path_hash_func(const void *p, struct siphash *state); -int path_compare_func(const void *a, const void *b) _pure_; -extern const struct hash_ops path_hash_ops; - -/* This will compare the passed pointers directly, and will not dereference them. This is hence not useful for strings - * or suchlike. */ +/* This will compare the passed pointers directly, and will not + * dereference them. This is hence not useful for strings or + * suchlike. */ void trivial_hash_func(const void *p, struct siphash *state); int trivial_compare_func(const void *a, const void *b) _const_; extern const struct hash_ops trivial_hash_ops; -- 2.30.2