diff -urN libaal-1.0.5/include/aal/exception.h libaal-1.0.5-alt/include/aal/exception.h --- libaal-1.0.5/include/aal/exception.h 2005-07-28 22:13:41.000000000 +0300 +++ libaal-1.0.5-alt/include/aal/exception.h 2013-08-31 04:58:59.000000000 +0300 @@ -24,8 +24,7 @@ extern aal_exception_option_t aal_exception_throw(aal_exception_type_t type, aal_exception_option_t opt, - const char *message, ...) - __aal_check_format(printf, 3, 4); + const char *message, ...); #define aal_fatal(msg, list...) \ aal_exception_throw(EXCEPTION_TYPE_FATAL, EXCEPTION_OPT_OK, msg, ##list) diff -urN libaal-1.0.5/include/aal/types.h libaal-1.0.5-alt/include/aal/types.h --- libaal-1.0.5/include/aal/types.h 2005-07-28 22:13:41.000000000 +0300 +++ libaal-1.0.5-alt/include/aal/types.h 2013-08-31 04:58:59.000000000 +0300 @@ -256,14 +256,6 @@ #define EXCEPTION_OPT_OKCANCEL (EXCEPTION_OPT_OK | EXCEPTION_OPT_CANCEL) #define EXCEPTION_OPT_RETRYIGNORE (EXCEPTION_OPT_RETRY | EXCEPTION_OPT_IGNORE) -/* Format checking stuff */ -#ifdef __GNUC__ -#define __aal_check_format(style, format, begin) \ - __attribute__((__format__(style, format, begin))) -#else -#define __aal_check_format(style, format, begin) -#endif - /* This is exception structure. It contains: exception message, exception type, exception options. Usualy, the life cycle of exception is very short. Exception instance created by aal_exception_throw function and passed t diff -urN libaal-1.0.5/src/malloc.c libaal-1.0.5-alt/src/malloc.c --- libaal-1.0.5/src/malloc.c 2005-07-28 22:13:41.000000000 +0300 +++ libaal-1.0.5-alt/src/malloc.c 2013-08-31 04:59:37.000000000 +0300 @@ -156,8 +156,7 @@ return NULL; } -#define ptr2chunk(ptr) \ - ((chunk_t *)((int)ptr - sizeof(chunk_t))) +#define ptr2chunk(ptr) ((chunk_t *)ptr - 1) /* Frees passed memory pointer */ static void __chunk_free(void *ptr) {