summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-06-14 13:27:59 +1000
committerAndrew Bartlett <abartlet@samba.org>2010-06-15 10:53:50 +1000
commit8ea411847262fec592b48d1a5a3bf4809653a420 (patch)
tree2557cff5bc956651ac7d01c5845a667284745501
parent0800c9e6f19f7905159ac3ab457ce8cd1899c995 (diff)
downloadsamba-8ea411847262fec592b48d1a5a3bf4809653a420.tar.gz
samba-8ea411847262fec592b48d1a5a3bf4809653a420.tar.bz2
samba-8ea411847262fec592b48d1a5a3bf4809653a420.zip
s4:dsdb Add const to dsdb_dn functions that operate on an ldb_val.
Andrew Bartlett
-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 811d4745a7..d644d2d0dd 100644
--- a/source4/dsdb/common/util.c
+++ b/source4/dsdb/common/util.c
@@ -3074,7 +3074,7 @@ uint32_t dsdb_dn_rmd_flags(struct ldb_dn *dn)
return RMD_FLAGS directly from a ldb_val for a DN
returns 0 if RMD_FLAGS is not found
*/
-uint32_t dsdb_dn_val_rmd_flags(struct ldb_val *val)
+uint32_t dsdb_dn_val_rmd_flags(const struct ldb_val *val)
{
const char *p;
uint32_t flags;
@@ -3098,7 +3098,7 @@ uint32_t dsdb_dn_val_rmd_flags(struct ldb_val *val)
/*
return true if a ldb_val containing a DN in storage form is deleted
*/
-bool dsdb_dn_is_deleted_val(struct ldb_val *val)
+bool dsdb_dn_is_deleted_val(const struct ldb_val *val)
{
return (dsdb_dn_val_rmd_flags(val) & DSDB_RMD_FLAG_DELETED) != 0;
}