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) --- commands.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'commands.c') diff --git a/commands.c b/commands.c index b1f73ed..ab1e805 100644 --- a/commands.c +++ b/commands.c @@ -30,7 +30,6 @@ #define _IMAGE_CONFIG #include "config.h" -void cleanup(void); void remove_file(int, bool); void load_image(int); void open_info(void); @@ -64,7 +63,6 @@ bool cg_quit(arg_t _) printf("%s\n", files[i].name); } } - cleanup(); exit(EXIT_SUCCESS); } -- cgit v1.2.3