From b3030c3792b9fce060265922f059af5a96b0dc9a Mon Sep 17 00:00:00 2001 From: John Kohl Date: Thu, 3 May 1990 09:17:40 +0000 Subject: [PATCH] fix up some casting confusion git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@695 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/ccache/file/fcc_gennew.c | 4 ++-- src/lib/krb5/ccache/file/fcc_reslv.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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; } -- 2.26.2