summaryrefslogtreecommitdiff
path: root/source4/kdc
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-04-11 23:17:15 +0200
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-04-12 02:03:11 +0200
commitad898fd63815823309019403ef32f516f4dfbf86 (patch)
tree95fc2f21e41511033834bb74e885366e9d10a035 /source4/kdc
parent64f4183a3549205915354761eb211f031a632708 (diff)
downloadsamba-ad898fd63815823309019403ef32f516f4dfbf86.tar.gz
samba-ad898fd63815823309019403ef32f516f4dfbf86.tar.bz2
samba-ad898fd63815823309019403ef32f516f4dfbf86.zip
s4:kdc/db-glue.c - fix integer counter types
Diffstat (limited to 'source4/kdc')
-rw-r--r--source4/kdc/db-glue.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/source4/kdc/db-glue.c b/source4/kdc/db-glue.c
index 8871b0ebf8..49babeff72 100644
--- a/source4/kdc/db-glue.c
+++ b/source4/kdc/db-glue.c
@@ -208,8 +208,8 @@ static krb5_error_code samba_kdc_message2entry_keys(krb5_context context,
struct package_PrimaryKerberosBlob _pkb;
struct package_PrimaryKerberosCtr3 *pkb3 = NULL;
struct package_PrimaryKerberosCtr4 *pkb4 = NULL;
- uint32_t i;
- uint32_t allocated_keys = 0;
+ uint16_t i;
+ uint16_t allocated_keys = 0;
entry_ex->entry.keys.val = NULL;
entry_ex->entry.keys.len = 0;
@@ -498,7 +498,7 @@ static krb5_error_code samba_kdc_message2entry(krb5_context context,
{
struct loadparm_context *lp_ctx = kdc_db_ctx->lp_ctx;
unsigned int userAccountControl;
- int i;
+ unsigned int i;
krb5_error_code ret = 0;
krb5_boolean is_computer = FALSE;
char *realm = strupper_talloc(mem_ctx, lp_realm(lp_ctx));
@@ -760,7 +760,8 @@ static krb5_error_code samba_kdc_trust_message2entry(krb5_context context,
struct samba_kdc_entry *p;
enum ndr_err_code ndr_err;
- int i, ret, trust_direction_flags;
+ int ret, trust_direction_flags;
+ unsigned int i;
p = talloc(mem_ctx, struct samba_kdc_entry);
if (!p) {
@@ -1281,8 +1282,8 @@ done:
}
struct samba_kdc_seq {
- int index;
- int count;
+ unsigned int index;
+ unsigned int count;
struct ldb_message **msgs;
struct ldb_dn *realm_dn;
};