diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-02-08 17:37:56 +0100 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-05-30 07:58:52 +0200 |
commit | 3a5c777b29f75cb5b129eaec8d8e7a4d5e7024fe (patch) | |
tree | d254954be197030b21dee8a05eb615ce31c0dd24 | |
parent | 06b8944ea19cdffa39ae84c5dcfe9dc9d506af49 (diff) |
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.
-rw-r--r-- | src/basic/hash-funcs.h | 9 |
1 files 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; |