From: Ezra Peisach Date: Tue, 17 Oct 2000 23:02:10 +0000 (+0000) Subject: * admin.h (KADM5_PW_FIRST_PROMPT): Get rid of casts from X-Git-Tag: krb5-1.3-alpha1~1819 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=09a132924649678534304132bf67c87bd662daaf;p=krb5.git * admin.h (KADM5_PW_FIRST_PROMPT): Get rid of casts from error_message to char * - leave them as const char *. (kadm5_chpass_principal_util): Argument msg_len is unsigned int. * admin_internal.h (_kadm5_chpass_principal_util): msg_len is unsigned int. * chpass_util.c (_kadm5_chpass_principal_util): Change msg_len to unsigned int. Arhument to krb5_read_password is unsigned int. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12784 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/kadm5/ChangeLog b/src/lib/kadm5/ChangeLog index 0e2982b76..9ae8fc869 100644 --- a/src/lib/kadm5/ChangeLog +++ b/src/lib/kadm5/ChangeLog @@ -1,3 +1,15 @@ +2000-10-17 Ezra Peisach + + * admin.h (KADM5_PW_FIRST_PROMPT): Get rid of casts from + error_message to char * - leave them as const char *. + (kadm5_chpass_principal_util): Argument msg_len is unsigned int. + + * admin_internal.h (_kadm5_chpass_principal_util): msg_len is + unsigned int. + + * chpass_util.c (_kadm5_chpass_principal_util): Change msg_len to + unsigned int. Arhument to krb5_read_password is unsigned int. + 2000-07-03 Ezra Peisach * admin.h: Add kadm5_free_name_list prototype. diff --git a/src/lib/kadm5/admin.h b/src/lib/kadm5/admin.h index fee95635f..c2fd1601f 100644 --- a/src/lib/kadm5/admin.h +++ b/src/lib/kadm5/admin.h @@ -29,9 +29,9 @@ typedef char *kadm5_policy_t; typedef long kadm5_ret_t; #define KADM5_PW_FIRST_PROMPT \ - ((char *) error_message(CHPASS_UTIL_NEW_PASSWORD_PROMPT)) + (error_message(CHPASS_UTIL_NEW_PASSWORD_PROMPT)) #define KADM5_PW_SECOND_PROMPT \ - ((char *) error_message(CHPASS_UTIL_NEW_PASSWORD_AGAIN_PROMPT)) + (error_message(CHPASS_UTIL_NEW_PASSWORD_AGAIN_PROMPT)) /* * Succsessfull return code @@ -412,7 +412,7 @@ kadm5_ret_t kadm5_chpass_principal_util(void *server_handle, char *new_pw, char **ret_pw, char *msg_ret, - int msg_len); + unsigned int msg_len); kadm5_ret_t kadm5_free_principal_ent(void *server_handle, kadm5_principal_ent_t diff --git a/src/lib/kadm5/admin_internal.h b/src/lib/kadm5/admin_internal.h index 97cb5e52e..15db18e2a 100644 --- a/src/lib/kadm5/admin_internal.h +++ b/src/lib/kadm5/admin_internal.h @@ -63,7 +63,7 @@ kadm5_ret_t _kadm5_chpass_principal_util(void *server_handle, char *new_pw, char **ret_pw, char *msg_ret, - int msg_len); + unsigned int msg_len); /* this is needed by the alt_prof code I stole. The functions maybe shouldn't be named krb5_*, but they are. */ diff --git a/src/lib/kadm5/chpass_util.c b/src/lib/kadm5/chpass_util.c index a991ca00a..a3c42bfe1 100644 --- a/src/lib/kadm5/chpass_util.c +++ b/src/lib/kadm5/chpass_util.c @@ -60,9 +60,10 @@ kadm5_ret_t _kadm5_chpass_principal_util(void *server_handle, char *new_pw, char **ret_pw, char *msg_ret, - int msg_len) + unsigned int msg_len) { - int code, code2, pwsize; + int code, code2; + unsigned int pwsize; static char buffer[255]; char *new_password; kadm5_principal_ent_rec princ_ent;