fix up some casting confusion
authorJohn Kohl <jtkohl@mit.edu>
Thu, 3 May 1990 09:17:40 +0000 (09:17 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Thu, 3 May 1990 09:17:40 +0000 (09:17 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@695 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/ccache/file/fcc_gennew.c
src/lib/krb5/ccache/file/fcc_reslv.c

index 5f43e22bb15126bec82b7f864a43665af7ab2a1c..da9444baf43bc8688581e2295945bdc87da5d51a 100644 (file)
@@ -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;
      }
index 45d5a630ba91bf9de7dc88aefaeee76d385dc32a..7894c4b2ec0e081551067558639b812f6411b1cd 100644 (file)
@@ -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;
      }