From b553acce4b426e1a2e4fda3a9acbfbf41003154a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 5 Jun 2004 01:30:27 +0000 Subject: r1018: fix a const and unsigned int problem in ldb (This used to be commit 3d52ca93731ad67c14ac42f627e3feb1a964b29a) --- source4/lib/ldb/common/ldb_msg.c | 4 ++-- source4/lib/ldb/include/ldb.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/lib') diff --git a/source4/lib/ldb/common/ldb_msg.c b/source4/lib/ldb/common/ldb_msg.c index 055569b0ee..0d5b47f920 100644 --- a/source4/lib/ldb/common/ldb_msg.c +++ b/source4/lib/ldb/common/ldb_msg.c @@ -168,7 +168,7 @@ int ldb_msg_add_value(struct ldb_context *ldb, add a string element to a message */ int ldb_msg_add_string(struct ldb_context *ldb, struct ldb_message *msg, - char *attr_name, char *str) + const char *attr_name, char *str) { struct ldb_val val; @@ -226,7 +226,7 @@ int ldb_msg_find_int(const struct ldb_message *msg, unsigned int ldb_msg_find_uint(const struct ldb_message *msg, const char *attr_name, - int default_value) + unsigned int default_value) { const struct ldb_val *v = ldb_msg_find_ldb_val(msg, attr_name); if (!v || !v->data) { diff --git a/source4/lib/ldb/include/ldb.h b/source4/lib/ldb/include/ldb.h index 448d5607a8..241f186991 100644 --- a/source4/lib/ldb/include/ldb.h +++ b/source4/lib/ldb/include/ldb.h @@ -300,7 +300,7 @@ int ldb_msg_find_int(const struct ldb_message *msg, int default_value); unsigned int ldb_msg_find_uint(const struct ldb_message *msg, const char *attr_name, - int default_value); + unsigned int default_value); double ldb_msg_find_double(const struct ldb_message *msg, const char *attr_name, double default_value); -- cgit