From 8b435b76d68dd8f11808f0cff4d8998d2be48f4c Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 2 Jul 2024 18:54:34 +0000 Subject: Prepare for 0.0.2.0; add shibari-cache-config Signed-off-by: Laurent Bercot --- src/config/util.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/config/util.c (limited to 'src/config/util.c') diff --git a/src/config/util.c b/src/config/util.c new file mode 100644 index 0000000..f3da287 --- /dev/null +++ b/src/config/util.c @@ -0,0 +1,15 @@ +/* ISC license. */ + +#include + +#include "shibari-cache-config-internal.h" + +struct starts_with_a_string_key_s +{ + char const *s ; +} ; + +int keycmp (void const *a, void const *b) +{ + return strcmp((char const *)a, ((struct starts_with_a_string_key_s const *)b)->s) ; +} -- cgit v1.3.1