krb5_encode_princ_contents): Delcare local variable unsigned.
* kdb_cpw.c (add_key_pwd): Declare local variable unsigned based
on use.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13644
dc483132-0cff-0310-8789-
dd5450dbe970
+2001-07-26 Ezra Peisach <epeisach@mit.edu>
+
+ * kdb_xdr.c (krb5_dbe_update_mod_princ_data,
+ krb5_encode_princ_contents): Delcare local variable unsigned.
+
+ * kdb_cpw.c (add_key_pwd): Declare local variable unsigned based
+ on use.
+
2001-04-25 Ezra Peisach <epeisach@mit.edu>
* kdb_dbm.c (destroy_file_suffix): Declare as static.
#else
/* Why do we do this? Well, the afs_mit_string_to_key needs to
use strlen, and the realm is not NULL terminated.... */
- int slen = (*krb5_princ_realm(context,db_entry->princ)).length;
+ unsigned int slen =
+ (*krb5_princ_realm(context,db_entry->princ)).length;
if(!(key_salt.data.data = (char *) malloc(slen+1)))
return ENOMEM;
key_salt.data.data[slen] = 0;
krb5_error_code retval = 0;
krb5_octet * nextloc = 0;
char * unparse_mod_princ = 0;
- int unparse_mod_princ_size;
+ unsigned int unparse_mod_princ_size;
if ((retval = krb5_unparse_name(context, mod_princ,
&unparse_mod_princ)))
return(retval);
- unparse_mod_princ_size = (int) strlen(unparse_mod_princ) + 1;
+ unparse_mod_princ_size = strlen(unparse_mod_princ) + 1;
if ((nextloc = (krb5_octet *) malloc(unparse_mod_princ_size + 4))
== NULL) {
krb5_data * content;
krb5_db_entry * entry;
{
- int unparse_princ_size, i, j;
+ int i, j;
+ unsigned int unparse_princ_size;
char * unparse_princ;
char * nextloc;
krb5_tl_data * tl_data;