summaryrefslogtreecommitdiff
path: root/source4/rpc_server/drsuapi
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-08-23 07:37:36 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-08-23 18:05:52 +0200
commit2d80364f1ba33519a4b12a5d910ff58d74e6e5c2 (patch)
treecc5f11b11476d111f6b11cbe98986bb487a0f235 /source4/rpc_server/drsuapi
parent481044f8b303236bc9932b91ed689bb189382494 (diff)
downloadsamba-2d80364f1ba33519a4b12a5d910ff58d74e6e5c2.tar.gz
samba-2d80364f1ba33519a4b12a5d910ff58d74e6e5c2.tar.bz2
samba-2d80364f1ba33519a4b12a5d910ff58d74e6e5c2.zip
s4:getncchanges.c - fix some counter variable types
They should be "unsigned" since they count LDB objects. And also the SID array can be counted as "unsigned".
Diffstat (limited to 'source4/rpc_server/drsuapi')
-rw-r--r--source4/rpc_server/drsuapi/getncchanges.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/rpc_server/drsuapi/getncchanges.c b/source4/rpc_server/drsuapi/getncchanges.c
index 7eb5ee0d98..262559592d 100644
--- a/source4/rpc_server/drsuapi/getncchanges.c
+++ b/source4/rpc_server/drsuapi/getncchanges.c
@@ -690,7 +690,7 @@ static WERROR samdb_result_sid_array_dn(struct ldb_context *sam_ctx,
const struct dom_sid ***sids)
{
struct ldb_message_element *el;
- int i;
+ unsigned int i;
el = ldb_msg_find_element(msg, attr);
if (!el) {
@@ -731,7 +731,7 @@ static WERROR samdb_result_sid_array_ndr(struct ldb_context *sam_ctx,
const struct dom_sid ***sids)
{
struct ldb_message_element *el;
- int i;
+ unsigned int i;
el = ldb_msg_find_element(msg, attr);
if (!el) {
@@ -766,7 +766,7 @@ static WERROR samdb_result_sid_array_ndr(struct ldb_context *sam_ctx,
*/
static bool sid_list_match(const struct dom_sid **list1, const struct dom_sid **list2)
{
- int i, j;
+ unsigned int i, j;
/* do we ever have enough SIDs here to worry about O(n^2) ? */
for (i=0; list1[i]; i++) {
for (j=0; list2[j]; j++) {