summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-11-06 20:14:41 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-05 13:38:00 +0100
commitc695ce729b0e92a1033d505df04cd7813cb3b1b7 (patch)
tree0afb84c42a44ef5b3db9c784c78191a80672ae3e /source4/dsdb
parente8788808da604e867c8e1b31349abdd934a6789f (diff)
downloadsamba-c695ce729b0e92a1033d505df04cd7813cb3b1b7.tar.gz
samba-c695ce729b0e92a1033d505df04cd7813cb3b1b7.tar.bz2
samba-c695ce729b0e92a1033d505df04cd7813cb3b1b7.zip
s4:cracknames - Change two counter variables to unsigned
In both cases the unsigned counter fits better: - in the first one since we are counting LDB objects starting from 0 - in the second since we are counting an array starting from 0
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/samdb/cracknames.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/cracknames.c b/source4/dsdb/samdb/cracknames.c
index 3095ee2d46..9430ce0a98 100644
--- a/source4/dsdb/samdb/cracknames.c
+++ b/source4/dsdb/samdb/cracknames.c
@@ -80,7 +80,7 @@ static enum drsuapi_DsNameStatus LDB_lookup_spn_alias(krb5_context context, stru
const char *alias_from,
char **alias_to)
{
- int i;
+ unsigned int i;
int ret;
struct ldb_result *res;
struct ldb_message_element *spnmappings;
@@ -374,7 +374,7 @@ WERROR DsCrackNameOneName(struct ldb_context *sam_ctx, TALLOC_CTX *mem_ctx,
switch (format_offered) {
case DRSUAPI_DS_NAME_FORMAT_UNKNOWN:
{
- int i;
+ unsigned int i;
enum drsuapi_DsNameFormat formats[] = {
DRSUAPI_DS_NAME_FORMAT_FQDN_1779, DRSUAPI_DS_NAME_FORMAT_USER_PRINCIPAL,
DRSUAPI_DS_NAME_FORMAT_NT4_ACCOUNT, DRSUAPI_DS_NAME_FORMAT_CANONICAL,