Change ALLOC macro, remove FREE macro.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2439 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-07-18 22:30:41 +00:00
parent c8caf34273
commit 79dbf8b1ac

View File

@@ -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,