summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-07 19:15:37 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-07 19:20:01 +0100
commitf9f7199250486aebf4829f708b5f934d097c3245 (patch)
tree3f6263cb3a759ebc0e329125f777645f99842f25 /source4/dsdb
parent049f9d3c1a62f00b5f6eae97cfebddd45bf2edbc (diff)
downloadsamba-f9f7199250486aebf4829f708b5f934d097c3245.tar.gz
samba-f9f7199250486aebf4829f708b5f934d097c3245.tar.bz2
samba-f9f7199250486aebf4829f708b5f934d097c3245.zip
s4:linked_attributes LDB module - change counter variables to "unsigned" where appropriate
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/linked_attributes.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/linked_attributes.c b/source4/dsdb/samdb/ldb_modules/linked_attributes.c
index 4c326bc240..9bea7db31c 100644
--- a/source4/dsdb/samdb/ldb_modules/linked_attributes.c
+++ b/source4/dsdb/samdb/ldb_modules/linked_attributes.c
@@ -41,7 +41,7 @@ static int linked_attributes_fix_links(struct ldb_module *module,
struct ldb_message_element *el, struct dsdb_schema *schema,
const struct dsdb_attribute *schema_attr)
{
- int i;
+ unsigned int i;
TALLOC_CTX *tmp_ctx = talloc_new(module);
struct ldb_context *ldb = ldb_module_get_ctx(module);
const struct dsdb_attribute *target;
@@ -58,7 +58,8 @@ static int linked_attributes_fix_links(struct ldb_module *module,
for (i=0; i<el->num_values; i++) {
struct dsdb_dn *dsdb_dn;
- int ret, j;
+ unsigned int j;
+ int ret;
struct ldb_result *res;
struct ldb_message *msg;
struct ldb_message_element *el2;
@@ -144,7 +145,8 @@ static int linked_attributes_rename(struct ldb_module *module, struct ldb_reques
{
struct ldb_result *res;
struct ldb_message *msg;
- int ret, i;
+ unsigned int i;
+ int ret;
struct ldb_context *ldb = ldb_module_get_ctx(module);
struct dsdb_schema *schema = dsdb_get_schema(ldb);
/*