s4:local_password LDB module - change counter variables to "unsigned" where appropriate
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Sun, 7 Mar 2010 18:04:11 +0000 (19:04 +0100)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Sun, 7 Mar 2010 19:18:10 +0000 (20:18 +0100)
source4/dsdb/samdb/ldb_modules/local_password.c

index 9c386b354d428385a440240eecce05a28cf8946b..aa4d3af9e2dd6ca9489de1e411daeb8b95fecfa2 100644 (file)
@@ -151,7 +151,7 @@ static int local_password_add(struct ldb_module *module, struct ldb_request *req
        struct lpdb_context *ac;
        struct GUID objectGUID;
        int ret;
-       int i;
+       unsigned int i;
 
        ldb = ldb_module_get_ctx(module);
        ldb_debug(ldb, LDB_DEBUG_TRACE, "local_password_add\n");
@@ -311,7 +311,7 @@ static int local_password_modify(struct ldb_module *module, struct ldb_request *
        struct ldb_message *remote_message;
        struct ldb_request *remote_req;
        int ret;
-       int i;
+       unsigned int i;
 
        ldb = ldb_module_get_ctx(module);
        ldb_debug(ldb, LDB_DEBUG_TRACE, "local_password_modify\n");
@@ -784,7 +784,7 @@ static int lpdb_local_search_callback(struct ldb_request *req,
        struct ldb_reply *merge;
        struct lpdb_reply *lr;
        int ret;
-       int i;
+       unsigned int i;
 
        ac = talloc_get_type(req->context, struct lpdb_context);
        ldb = ldb_module_get_ctx(ac->module);
@@ -1013,7 +1013,7 @@ static int local_password_search(struct ldb_module *module, struct ldb_request *
        struct ldb_context *ldb;
        struct ldb_request *remote_req;
        struct lpdb_context *ac;
-       int i;
+       unsigned int i;
        int ret;
        const char * const *search_attrs = NULL;