From: Lennart Poettering Date: Thu, 8 Feb 2018 16:37:56 +0000 (+0100) Subject: hash-funcs: remove redundant definition of devt_hash_ops X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=3a5c777b29f75cb5b129eaec8d8e7a4d5e7024fe;p=elogind.git 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. --- 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;