diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-06-05 01:30:27 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:56:28 -0500 |
commit | b553acce4b426e1a2e4fda3a9acbfbf41003154a (patch) | |
tree | 9c05f29287df1de27571138dcd678de484803cea /source4/lib/ldb/common/ldb_msg.c | |
parent | e06d8e94a9eeb87c0c2ee8f22375c1ab6d18a3de (diff) | |
download | samba-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)
Diffstat (limited to 'source4/lib/ldb/common/ldb_msg.c')
-rw-r--r-- | source4/lib/ldb/common/ldb_msg.c | 4 |
1 files changed, 2 insertions, 2 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) { |