summaryrefslogtreecommitdiff
path: root/source4/dsdb/common
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-07-09 10:08:02 +1000
committerAndrew Bartlett <abartlet@samba.org>2009-07-09 14:56:14 +1000
commit2c873c43534d61cd411b5c8d56425fd9c2ddd128 (patch)
tree0d6b5094435204891f26ed5f59816c9352d46401 /source4/dsdb/common
parentfbaa8497a5c8c209de9ca86bebf8387e6d33a608 (diff)
downloadsamba-2c873c43534d61cd411b5c8d56425fd9c2ddd128.tar.gz
samba-2c873c43534d61cd411b5c8d56425fd9c2ddd128.tar.bz2
samba-2c873c43534d61cd411b5c8d56425fd9c2ddd128.zip
Add const
Diffstat (limited to 'source4/dsdb/common')
-rw-r--r--source4/dsdb/common/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c
index 313005b673..cbae2ec24c 100644
--- a/source4/dsdb/common/util.c
+++ b/source4/dsdb/common/util.c
@@ -529,7 +529,7 @@ NTTIME samdb_result_force_password_change(struct ldb_context *sam_ldb,
/*
pull a samr_Password structutre from a result set.
*/
-struct samr_Password *samdb_result_hash(TALLOC_CTX *mem_ctx, struct ldb_message *msg, const char *attr)
+struct samr_Password *samdb_result_hash(TALLOC_CTX *mem_ctx, const struct ldb_message *msg, const char *attr)
{
struct samr_Password *hash = NULL;
const struct ldb_val *val = ldb_msg_find_ldb_val(msg, attr);
@@ -543,7 +543,7 @@ struct samr_Password *samdb_result_hash(TALLOC_CTX *mem_ctx, struct ldb_message
/*
pull an array of samr_Password structutres from a result set.
*/
-uint_t samdb_result_hashes(TALLOC_CTX *mem_ctx, struct ldb_message *msg,
+uint_t samdb_result_hashes(TALLOC_CTX *mem_ctx, const struct ldb_message *msg,
const char *attr, struct samr_Password **hashes)
{
uint_t count = 0;