From d3a70a285d03224fde9e6ef36eba9de21b773f39 Mon Sep 17 00:00:00 2001 From: Bert Münnich Date: Wed, 28 Oct 2015 23:03:37 +0100 Subject: Revised error handling - Functions warn() and die() replaced by GNU-like error(3) function - Register cleanup() with atexit(3) - Functions called by cleanup() are marked with CLEANUP and are not allowed to call exit(3) --- thumbs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thumbs.h') diff --git a/thumbs.h b/thumbs.h index cda2777..7b9987e 100644 --- a/thumbs.h +++ b/thumbs.h @@ -58,7 +58,7 @@ typedef struct { void tns_clean_cache(tns_t*); void tns_init(tns_t*, fileinfo_t*, const int*, int*, win_t*); -void tns_free(tns_t*); +CLEANUP void tns_free(tns_t*); bool tns_load(tns_t*, int, bool, bool); void tns_unload(tns_t*, int); -- cgit v1.2.3