From 0c76daf2a95805baeae6e60b5eb0b9ffde4e5ea8 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 --- cdrskin/cdrskin_timestamp.h | 2 +- libburn/init.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cdrskin/cdrskin_timestamp.h b/cdrskin/cdrskin_timestamp.h index dfb094e..27f717d 100644 --- a/cdrskin/cdrskin_timestamp.h +++ b/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2011.05.15.104926" +#define Cdrskin_timestamP "2011.05.15.181724" diff --git a/libburn/init.h b/libburn/init.h index 205982a..9c14178 100644 --- a/libburn/init.h +++ b/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); \ }