From 79dbf8b1ac3c0ede0e05b03ef3e9ba145c9a3b81 Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Fri, 18 Jul 1997 22:30:41 +0000 Subject: [PATCH] Change ALLOC macro, remove FREE macro. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2439 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/krb5_locl.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/krb5/krb5_locl.h b/lib/krb5/krb5_locl.h index 25dc62db5..ce7a5fb02 100644 --- a/lib/krb5/krb5_locl.h +++ b/lib/krb5/krb5_locl.h @@ -169,8 +169,7 @@ krb5_build_authenticator (krb5_context context, void krb5_generate_random_block(void *buf, size_t len); -#define ALLOC(N, X) ((X*)malloc((N) * sizeof(X))) -#define FREE(X) do{if(X)free(X);}while(0) +#define ALLOC(X, N) (X) = calloc((N), sizeof(*(X))) int extract_ticket(krb5_context context,