From cbc2078731ae7291194025e953b6003b0cf47976 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sun, 15 May 2011 18:16:58 +0000 Subject: [PATCH] Polished macro BURN_ALLOC_MEM --- libburn/trunk/cdrskin/cdrskin_timestamp.h | 2 +- libburn/trunk/libburn/init.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libburn/trunk/cdrskin/cdrskin_timestamp.h b/libburn/trunk/cdrskin/cdrskin_timestamp.h index dfb094e8..27f717dc 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2011.05.15.104926" +#define Cdrskin_timestamP "2011.05.15.181724" diff --git a/libburn/trunk/libburn/init.h b/libburn/trunk/libburn/init.h index 205982a4..9c14178c 100644 --- a/libburn/trunk/libburn/init.h +++ b/libburn/trunk/libburn/init.h @@ -28,8 +28,8 @@ extern volatile int burn_builtin_triggered_action; /* burn_is_aborting() */ int burn_init_catch_on_abort(int flag); -#define BURN_ALLOC_MEM(pt, typ, anz) { \ - pt= (typ *) calloc(1, (anz)*sizeof(typ)); \ +#define BURN_ALLOC_MEM(pt, typ, count) { \ + pt= (typ *) calloc(1, (count)*sizeof(typ)); \ if(pt == NULL) { \ libdax_msgs_submit(libdax_messenger, -1, 0x00000003, \ LIBDAX_MSGS_SEV_FATAL, LIBDAX_MSGS_PRIO_HIGH, \ @@ -39,7 +39,7 @@ int burn_init_catch_on_abort(int flag); #define BURN_FREE_MEM(pt) { \ if(pt != NULL) \ - free(pt); \ + free((char *) pt); \ }