summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-03-16 14:46:31 +1100
committerAndrew Bartlett <abartlet@samba.org>2010-03-16 19:26:02 +1100
commitbf0b4d7ee3f52f77d706ccea12abb2f033b4abd9 (patch)
treee6c920f7e9b2102beaf10aca9d15029de2de841c
parenta7ec946cedf29ad8a88fcd0b253468b61f369d86 (diff)
downloadsamba-bf0b4d7ee3f52f77d706ccea12abb2f033b4abd9.tar.gz
samba-bf0b4d7ee3f52f77d706ccea12abb2f033b4abd9.tar.bz2
samba-bf0b4d7ee3f52f77d706ccea12abb2f033b4abd9.zip
s4:dsdb Fix warnings in DEBUG() by casting to unsigned long int
-rw-r--r--source4/dsdb/samdb/ldb_modules/validate_update.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/validate_update.c b/source4/dsdb/samdb/ldb_modules/validate_update.c
index 900b3d004a..3615ff768a 100644
--- a/source4/dsdb/samdb/ldb_modules/validate_update.c
+++ b/source4/dsdb/samdb/ldb_modules/validate_update.c
@@ -44,8 +44,8 @@ static int validate_update_message(struct ldb_context *ldb,
for (j=0; j < msg->elements[i].num_values; j++) {
ldb_debug(ldb, LDB_DEBUG_ERROR,
- "TODO: value[%d] len[%d]\n", j,
- msg->elements[i].values[j].length);
+ "TODO: value[%lu] len[%lu]\n", (long unsigned int)j,
+ (long unsigned int)msg->elements[i].values[j].length);
dump_data(0,
msg->elements[i].values[j].data,
msg->elements[i].values[j].length);
@@ -65,7 +65,7 @@ static int validate_update_add(struct ldb_module *module, struct ldb_request *re
int ret;
ldb = ldb_module_get_ctx(module);
- schema = dsdb_get_schema(ldb);
+ schema = dsdb_get_schema(ldb, NULL);
if (!schema) {
return ldb_next_request(module, req);
@@ -92,7 +92,7 @@ static int validate_update_modify(struct ldb_module *module, struct ldb_request
int ret;
ldb = ldb_module_get_ctx(module);
- schema = dsdb_get_schema(ldb);
+ schema = dsdb_get_schema(ldb, NULL);
if (!schema) {
return ldb_next_request(module, req);