chiark / gitweb /
hash-funcs: remove redundant definition of devt_hash_ops
authorLennart Poettering <lennart@poettering.net>
Thu, 8 Feb 2018 16:37:56 +0000 (17:37 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:58:52 +0000 (07:58 +0200)
We should assign a value only in the .c file, not in both the .c and .h
file.

src/basic/hash-funcs.h

index 945b4c251c7dcfa9514647af455a7e1e9d24d0af..c31ef0cc39e6fba647ae22b9d7cd6b2266bd04fe 100644 (file)
@@ -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;