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
+2000-10-17 Ezra Peisach <epeisach@mit.edu>
+
+ * 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 <epeisach@mit.edu>
* admin.h: Add kadm5_free_name_list prototype.
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
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
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. */
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;