summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-06-05 01:30:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:56:28 -0500
commitb553acce4b426e1a2e4fda3a9acbfbf41003154a (patch)
tree9c05f29287df1de27571138dcd678de484803cea
parente06d8e94a9eeb87c0c2ee8f22375c1ab6d18a3de (diff)
downloadsamba-b553acce4b426e1a2e4fda3a9acbfbf41003154a.tar.gz
samba-b553acce4b426e1a2e4fda3a9acbfbf41003154a.tar.bz2
samba-b553acce4b426e1a2e4fda3a9acbfbf41003154a.zip
r1018: fix a const and unsigned int problem in ldb
(This used to be commit 3d52ca93731ad67c14ac42f627e3feb1a964b29a)
-rw-r--r--source4/lib/ldb/common/ldb_msg.c4
-rw-r--r--source4/lib/ldb/include/ldb.h2
2 files changed, 3 insertions, 3 deletions
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);