From: Sebastian Harl Date: Fri, 4 Jul 2014 18:57:19 +0000 (+0200) Subject: data: Pass const pointers to sdb_data_cmp(). X-Git-Tag: sysdb-0.3.0~85 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=65fa52f81ffdcbaebb6232d48809695b058e6c67;p=sysdb.git data: Pass const pointers to sdb_data_cmp(). --- diff --git a/src/core/data.c b/src/core/data.c index beba5a7..ae8e662 100644 --- a/src/core/data.c +++ b/src/core/data.c @@ -92,7 +92,7 @@ sdb_data_free_datum(sdb_data_t *datum) } /* 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 { \ diff --git a/src/include/core/data.h b/src/include/core/data.h index d6bf317..da653ce 100644 --- a/src/include/core/data.h +++ b/src/include/core/data.h @@ -112,7 +112,7 @@ sdb_data_free_datum(sdb_data_t *datum); * - 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: