From d3a70a285d03224fde9e6ef36eba9de21b773f39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bert=20M=C3=BCnnich?= 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) --- window.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'window.h') diff --git a/window.h b/window.h index 8761120..31bd898 100644 --- a/window.h +++ b/window.h @@ -90,7 +90,7 @@ extern Atom atoms[ATOM_COUNT]; void win_init(win_t*); void win_open(win_t*); -void win_close(win_t*); +CLEANUP void win_close(win_t*); bool win_configure(win_t*, XConfigureEvent*); -- cgit v1.2.3