From: John Kohl Date: Thu, 3 May 1990 09:17:40 +0000 (+0000) Subject: fix up some casting confusion X-Git-Tag: krb5-1.0-alpha2~701 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b3030c3792b9fce060265922f059af5a96b0dc9a;p=krb5.git fix up some casting confusion git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@695 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/ccache/file/fcc_gennew.c b/src/lib/krb5/ccache/file/fcc_gennew.c index 5f43e22bb..da9444baf 100644 --- a/src/lib/krb5/ccache/file/fcc_gennew.c +++ b/src/lib/krb5/ccache/file/fcc_gennew.c @@ -51,8 +51,8 @@ krb5_fcc_generate_new (id) sprintf(scratch, "%sXXXXXX", TKT_ROOT); mktemp(scratch); - lid->data = (krb5_fcc_data *) malloc(sizeof(krb5_fcc_data)); - if (((krb5_fcc_data *) lid->data) == NULL) { + lid->data = (krb5_pointer) malloc(sizeof(krb5_fcc_data)); + if (lid->data == NULL) { xfree(lid); return KRB5_NOMEM; } diff --git a/src/lib/krb5/ccache/file/fcc_reslv.c b/src/lib/krb5/ccache/file/fcc_reslv.c index 45d5a630b..7894c4b2e 100644 --- a/src/lib/krb5/ccache/file/fcc_reslv.c +++ b/src/lib/krb5/ccache/file/fcc_reslv.c @@ -52,8 +52,8 @@ krb5_fcc_resolve (id, residual) lid->ops = &krb5_fcc_ops; - lid->data = (krb5_fcc_data *) malloc(sizeof(krb5_fcc_data)); - if (((krb5_fcc_data *) lid->data) == NULL) { + lid->data = (krb5_pointer) malloc(sizeof(krb5_fcc_data)); + if (lid->data == NULL) { xfree(lid); return KRB5_NOMEM; }