diff options
author | Bert Münnich <ber.t@posteo.de> | 2015-10-28 23:03:37 +0100 |
---|---|---|
committer | Bert Münnich <ber.t@posteo.de> | 2015-10-28 23:03:37 +0100 |
commit | d3a70a285d03224fde9e6ef36eba9de21b773f39 (patch) | |
tree | 8b44b129eae5d9c067e2590c7293d06f3fba2753 /commands.c | |
parent | 851e4288c102cc4177d54d87aded43d003e85885 (diff) | |
download | nsxiv-d3a70a285d03224fde9e6ef36eba9de21b773f39.tar.zst |
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 'commands.c')
-rw-r--r-- | commands.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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); } |