Warning fixes from Christos Zoulas
- shadowed variables - signed/unsigned confusion - const lossage - incomplete structure initializations - unused code
This commit is contained in:
@@ -426,7 +426,7 @@ unparse_name_fixed(krb5_context context,
|
||||
int flags)
|
||||
{
|
||||
size_t idx = 0;
|
||||
int i;
|
||||
size_t i;
|
||||
int short_form = (flags & KRB5_PRINCIPAL_UNPARSE_SHORT) != 0;
|
||||
int no_realm = (flags & KRB5_PRINCIPAL_UNPARSE_NO_REALM) != 0;
|
||||
int display = (flags & KRB5_PRINCIPAL_UNPARSE_DISPLAY) != 0;
|
||||
@@ -549,7 +549,7 @@ unparse_name(krb5_context context,
|
||||
int flags)
|
||||
{
|
||||
size_t len = 0, plen;
|
||||
int i;
|
||||
size_t i;
|
||||
krb5_error_code ret;
|
||||
/* count length */
|
||||
if (princ_realm(principal)) {
|
||||
@@ -917,7 +917,7 @@ krb5_principal_compare_any_realm(krb5_context context,
|
||||
krb5_const_principal princ1,
|
||||
krb5_const_principal princ2)
|
||||
{
|
||||
int i;
|
||||
size_t i;
|
||||
if(princ_num_comp(princ1) != princ_num_comp(princ2))
|
||||
return FALSE;
|
||||
for(i = 0; i < princ_num_comp(princ1); i++){
|
||||
@@ -932,7 +932,7 @@ _krb5_principal_compare_PrincipalName(krb5_context context,
|
||||
krb5_const_principal princ1,
|
||||
PrincipalName *princ2)
|
||||
{
|
||||
int i;
|
||||
size_t i;
|
||||
if (princ_num_comp(princ1) != princ2->name_string.len)
|
||||
return FALSE;
|
||||
for(i = 0; i < princ_num_comp(princ1); i++){
|
||||
@@ -1001,7 +1001,7 @@ krb5_principal_match(krb5_context context,
|
||||
krb5_const_principal princ,
|
||||
krb5_const_principal pattern)
|
||||
{
|
||||
int i;
|
||||
size_t i;
|
||||
if(princ_num_comp(princ) != princ_num_comp(pattern))
|
||||
return FALSE;
|
||||
if(fnmatch(princ_realm(pattern), princ_realm(princ), 0) != 0)
|
||||
@@ -1096,7 +1096,7 @@ static const struct {
|
||||
{ "ENT_PRINCIPAL_AND_ID", KRB5_NT_ENT_PRINCIPAL_AND_ID },
|
||||
{ "MS_PRINCIPAL", KRB5_NT_MS_PRINCIPAL },
|
||||
{ "MS_PRINCIPAL_AND_ID", KRB5_NT_MS_PRINCIPAL_AND_ID },
|
||||
{ NULL }
|
||||
{ NULL, 0 }
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user