aboutsummaryrefslogtreecommitdiff
path: root/image.h
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2015-10-28 23:03:37 +0100
committerBert Münnich <ber.t@posteo.de>2015-10-28 23:03:37 +0100
commitd3a70a285d03224fde9e6ef36eba9de21b773f39 (patch)
tree8b44b129eae5d9c067e2590c7293d06f3fba2753 /image.h
parent851e4288c102cc4177d54d87aded43d003e85885 (diff)
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)
Diffstat (limited to 'image.h')
-rw-r--r--image.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/image.h b/image.h
index 35c0d71..8932fdf 100644
--- a/image.h
+++ b/image.h
@@ -69,7 +69,7 @@ typedef struct {
void img_init(img_t*, win_t*);
bool img_load(img_t*, const fileinfo_t*);
-void img_close(img_t*, bool);
+CLEANUP void img_close(img_t*, bool);
void img_render(img_t*);