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:
@@ -169,8 +169,7 @@ krb5_build_authenticator (krb5_context context,
|
|||||||
void
|
void
|
||||||
krb5_generate_random_block(void *buf, size_t len);
|
krb5_generate_random_block(void *buf, size_t len);
|
||||||
|
|
||||||
#define ALLOC(N, X) ((X*)malloc((N) * sizeof(X)))
|
#define ALLOC(X, N) (X) = calloc((N), sizeof(*(X)))
|
||||||
#define FREE(X) do{if(X)free(X);}while(0)
|
|
||||||
|
|
||||||
int
|
int
|
||||||
extract_ticket(krb5_context context,
|
extract_ticket(krb5_context context,
|
||||||
|
Reference in New Issue
Block a user