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

index 5ce69a26a2f1958c80ceae7e09105eed388b7af5..7639aef5c0d5ec290b5f802407badf43cc8fca71 100644 (file)
@@ -58,7 +58,7 @@ static int rr_search_callback(struct ldb_request *req, struct ldb_reply *ares)
 {
        struct ldb_context *ldb;
        struct rr_context *ac;
-       int i, j;
+       unsigned int i, j;
 
        ac = talloc_get_type(req->context, struct rr_context);
        ldb = ldb_module_get_ctx(ac->module);
@@ -174,7 +174,7 @@ static int rr_search_callback(struct ldb_request *req, struct ldb_reply *ares)
 static int rr_search(struct ldb_module *module, struct ldb_request *req)
 {
        struct ldb_context *ldb;
-       int i;
+       unsigned int i;
        unsigned int start, end;
        const char **new_attrs = NULL;
        bool found_rr = false;