summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1eb1222)
raw | patch | inline | side by side (parent: 1eb1222)
author | Sebastian Harl <sh@tokkee.org> | |
Fri, 4 Jul 2014 18:57:19 +0000 (20:57 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Fri, 4 Jul 2014 18:57:19 +0000 (20:57 +0200) |
src/core/data.c | patch | blob | history | |
src/include/core/data.h | patch | blob | history |
diff --git a/src/core/data.c b/src/core/data.c
index beba5a7a4006011dc51838d7f7a5bdd57fa9c846..ae8e662d98d22835c4dacaf23f251a5b9c1d0d29 100644 (file)
--- a/src/core/data.c
+++ b/src/core/data.c
} /* sdb_data_free_datum */
int
-sdb_data_cmp(sdb_data_t *d1, sdb_data_t *d2)
+sdb_data_cmp(const sdb_data_t *d1, const sdb_data_t *d2)
{
#define CMP_NULL(a, b) \
do { \
index d6bf3179eb39ddb4cb6d2c74b36bc4f718216cb0..da653ce3f47e1f9692584b016da5e3d176ac4f80 100644 (file)
--- a/src/include/core/data.h
+++ b/src/include/core/data.h
* - a value greater than zero if d1 compares greater than d2
*/
int
-sdb_data_cmp(sdb_data_t *d1, sdb_data_t *d2);
+sdb_data_cmp(const sdb_data_t *d1, const sdb_data_t *d2);
/*
* sdb_data_strlen: