From: Chris Provenzano Date: Mon, 27 Mar 1995 14:46:00 +0000 (+0000) Subject: * kadmin_inq.c, kadmin.c: X-Git-Tag: krb5-1.0-beta5~450 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8a6228edd58b5f120a408f3af5b23e1dcf3f8b5a;p=krb5.git * kadmin_inq.c, kadmin.c: Cast malloc() return value to shut compiler up. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5260 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kadmin/client/ChangeLog b/src/kadmin/client/ChangeLog index d6753db06..26e4d0158 100644 --- a/src/kadmin/client/ChangeLog +++ b/src/kadmin/client/ChangeLog @@ -1,3 +1,7 @@ +Fri Mar 17 15:36:07 1995 Chris Provenzano (proven@mit.edu) + + * kadmin_inq.c, kadmin.c: + Cast malloc() return value to shut compiler up. Fri Mar 10 11:09:34 1995 Chris Provenzano (proven@mit.edu) @@ -29,7 +33,7 @@ Fri Feb 10 17:50:39 1995 Theodore Y. Ts'o Mon Feb 06 17:19:04 1995 Chris Provenzano (proven@mit.edu) - * kadmin.c Removed krb5_keytype, changed krb5_enctype to + * kadmin.c: Removed krb5_keytype, changed krb5_enctype to krb5_enctype *, changed krb5_preauthtype to krb5_preauthtype * for krb5_get_in_tkt_with_password() rotuine. diff --git a/src/kadmin/client/kadmin.c b/src/kadmin/client/kadmin.c index 44d9219db..b571affc9 100644 --- a/src/kadmin/client/kadmin.c +++ b/src/kadmin/client/kadmin.c @@ -679,7 +679,7 @@ void decode_kadmind_reply(data, response) response->oper_code = data.data[1]; response->retn_code = data.data[2]; if (data.length > 3 && data.data[3]) { - response->message = malloc(data.length - 2); + response->message = (char *)malloc(data.length - 2); if (response->message) { memcpy(response->message, data.data + 3, data.length - 3); response->message[data.length - 3] = 0; diff --git a/src/kadmin/client/kadmin_inq.c b/src/kadmin/client/kadmin_inq.c index 55988cdb7..86afb8ca3 100644 --- a/src/kadmin/client/kadmin_inq.c +++ b/src/kadmin/client/kadmin_inq.c @@ -130,7 +130,7 @@ kadm_inq_user(context, auth_context, my_creds, local_socket, principal) return(0); } - my_data = malloc(msg_data.length + 1); + my_data = (char *)malloc(msg_data.length + 1); if (!my_data) { fprintf(stderr, "kadmin_inq: Couldn't allocate space for my_data!\n"); exit(1);