Polished macro BURN_ALLOC_MEM

This commit is contained in:
Thomas Schmitt 2011-05-15 18:16:58 +00:00
parent 86656a9d52
commit 0c76daf2a9
2 changed files with 4 additions and 4 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2011.05.15.104926" #define Cdrskin_timestamP "2011.05.15.181724"

View File

@ -28,8 +28,8 @@ extern volatile int burn_builtin_triggered_action; /* burn_is_aborting() */
int burn_init_catch_on_abort(int flag); int burn_init_catch_on_abort(int flag);
#define BURN_ALLOC_MEM(pt, typ, anz) { \ #define BURN_ALLOC_MEM(pt, typ, count) { \
pt= (typ *) calloc(1, (anz)*sizeof(typ)); \ pt= (typ *) calloc(1, (count)*sizeof(typ)); \
if(pt == NULL) { \ if(pt == NULL) { \
libdax_msgs_submit(libdax_messenger, -1, 0x00000003, \ libdax_msgs_submit(libdax_messenger, -1, 0x00000003, \
LIBDAX_MSGS_SEV_FATAL, LIBDAX_MSGS_PRIO_HIGH, \ 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) { \ #define BURN_FREE_MEM(pt) { \
if(pt != NULL) \ if(pt != NULL) \
free(pt); \ free((char *) pt); \
} }