diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-11-06 18:35:17 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2010-03-06 11:35:17 +0100 |
commit | e10fa46f3e5b3481e3c95e52f9d666eafd50ed25 (patch) | |
tree | 53637c911edbbf5fb5c16a42cb1816c3315ec6cc /source4/lib/ldb/tools/ldbsearch.c | |
parent | 24049e8fc58c5216b3af8fdaf327471eaff882a1 (diff) | |
download | samba-e10fa46f3e5b3481e3c95e52f9d666eafd50ed25.tar.gz samba-e10fa46f3e5b3481e3c95e52f9d666eafd50ed25.tar.bz2 samba-e10fa46f3e5b3481e3c95e52f9d666eafd50ed25.zip |
LDB:tools - change counters to be unsigned
In most cases we do count LDB objects which are enumerated within the "unsigned"
type. Therefore no need to use "signed" counters.
Diffstat (limited to 'source4/lib/ldb/tools/ldbsearch.c')
-rw-r--r-- | source4/lib/ldb/tools/ldbsearch.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/lib/ldb/tools/ldbsearch.c b/source4/lib/ldb/tools/ldbsearch.c index af0c12a84c..327a75ed8d 100644 --- a/source4/lib/ldb/tools/ldbsearch.c +++ b/source4/lib/ldb/tools/ldbsearch.c @@ -54,15 +54,15 @@ struct search_context { struct ldb_control **req_ctrls; int sort; - int num_stored; + unsigned int num_stored; struct ldb_message **store; - int refs_stored; + unsigned int refs_stored; char **refs_store; - int entries; - int refs; + unsigned int entries; + unsigned int refs; - int pending; + unsigned int pending; int status; }; @@ -240,7 +240,7 @@ again: goto again; if (sctx->sort && (sctx->num_stored != 0 || sctx->refs != 0)) { - int i; + unsigned int i; if (sctx->num_stored) { LDB_TYPESAFE_QSORT(sctx->store, sctx->num_stored, ldb, do_compare_msg); |