From: Ezra Peisach Date: Fri, 21 Apr 2006 15:55:17 +0000 (+0000) Subject: unsigned/signed int warnings in krb5_context variables X-Git-Tag: krb5-1.5-alpha1~65 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=34a7b0beed75a4b37926bcd4a65e81804d33f305;p=krb5.git unsigned/signed int warnings in krb5_context variables Change in_tkt_ktype_count, tgs_ktype_count and conf_tgs_ktypes_count in context to unsigned int. Change get_profile_etype_list() to expect unsigned int as well. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17947 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/k5-int.h b/src/include/k5-int.h index d9a464733..eaf99322f 100644 --- a/src/include/k5-int.h +++ b/src/include/k5-int.h @@ -1013,9 +1013,9 @@ void KRB5_CALLCONV krb5_free_pa_enc_ts struct _krb5_context { krb5_magic magic; krb5_enctype *in_tkt_ktypes; - int in_tkt_ktype_count; + unsigned int in_tkt_ktype_count; krb5_enctype *tgs_ktypes; - int tgs_ktype_count; + unsigned int tgs_ktype_count; /* This used to be a void*, but since we always allocate them together (though in different source files), and the types are declared in the same header, might as well just combine @@ -1054,7 +1054,7 @@ struct _krb5_context { requested ticket (the session key of which may be constrained by tgs_ktypes above). */ krb5_enctype *conf_tgs_ktypes; - int conf_tgs_ktypes_count; + unsigned int conf_tgs_ktypes_count; /* Use the _configured version? */ krb5_boolean use_conf_ktypes; diff --git a/src/lib/krb5/krb/init_ctx.c b/src/lib/krb5/krb/init_ctx.c index 3cbf99e5b..82cc4f1cd 100644 --- a/src/lib/krb5/krb/init_ctx.c +++ b/src/lib/krb5/krb/init_ctx.c @@ -317,7 +317,7 @@ krb5_set_default_in_tkt_ktypes(krb5_context context, const krb5_enctype *ktypes) static krb5_error_code get_profile_etype_list(krb5_context context, krb5_enctype **ktypes, char *profstr, - int ctx_count, krb5_enctype *ctx_list) + unsigned int ctx_count, krb5_enctype *ctx_list) { krb5_enctype *old_ktypes;