diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2010-03-08 18:01:32 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2010-03-08 18:51:25 +0100 |
commit | 7e7d9a8a4827f283d13f393404da978130baaa93 (patch) | |
tree | c238eca28746eceb23a3398b8b3b61f05115b6b0 /source4 | |
parent | a4dc50ef1273259c53f96ee4aaaef917e8daeffe (diff) | |
download | samba-7e7d9a8a4827f283d13f393404da978130baaa93.tar.gz samba-7e7d9a8a4827f283d13f393404da978130baaa93.tar.bz2 samba-7e7d9a8a4827f283d13f393404da978130baaa93.zip |
LDB:paged results module - change counters to "unsigned" where appropriate
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/ldb/modules/paged_results.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/lib/ldb/modules/paged_results.c b/source4/lib/ldb/modules/paged_results.c index ff1b92ff97..25b7532612 100644 --- a/source4/lib/ldb/modules/paged_results.c +++ b/source4/lib/ldb/modules/paged_results.c @@ -65,8 +65,7 @@ struct results_store { }; struct private_data { - - int next_free_id; + unsigned int next_free_id; struct results_store *store; }; @@ -95,7 +94,7 @@ static int store_destructor(struct results_store *del) static struct results_store *new_store(struct private_data *priv) { struct results_store *newr; - int new_id = priv->next_free_id++; + unsigned int new_id = priv->next_free_id++; /* TODO: we should have a limit on the number of * outstanding paged searches @@ -140,7 +139,8 @@ static int paged_results(struct paged_context *ac) { struct ldb_paged_control *paged; struct message_store *msg; - int i, num_ctrls, ret; + unsigned int i, num_ctrls; + int ret; if (ac->store == NULL) { return LDB_ERR_OPERATIONS_ERROR; |