summaryrefslogtreecommitdiff
path: root/src/config/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/config/util.c')
-rw-r--r--src/config/util.c15
1 files changed, 15 insertions, 0 deletions
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 <string.h>
+
+#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) ;
+}