summaryrefslogtreecommitdiff
path: root/die.h
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2015-05-04 11:11:21 +0300
committerTobias Klauser <tklauser@distanz.ch>2015-05-05 11:26:46 +0200
commit0102de0e67185a09c39d5b1e1b3c51bc1607144b (patch)
treeb62b69dd0ae9fc4d7ee9ae6c05ea2c7cc512c846 /die.h
parentf2828acdd708eea5ac95542c2258c894ef1cda9b (diff)
die: Rename *_panic_func to *_panic_handler
Rename xxx_panic_func(s) to xxx_panic_handler(s) which is more understandable than 'func'. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'die.h')
-rw-r--r--die.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/die.h b/die.h
index 0d709d0..0ca9e86 100644
--- a/die.h
+++ b/die.h
@@ -12,8 +12,8 @@
#include "built_in.h"
-extern void panic_func_add(void (*on_panic)(void *arg), void *arg);
-extern void call_on_panic_funcs(void);
+extern void panic_handler_add(void (*on_panic)(void *arg), void *arg);
+extern void call_panic_handlers(void);
static inline void panic(const char *format, ...) __check_format_printf(1, 2);
static inline void syslog_panic(const char *format,
@@ -23,13 +23,13 @@ static inline void syslog_maybe(bool cond, int priority,
static inline void __noreturn __die_hard(void)
{
- call_on_panic_funcs();
+ call_panic_handlers();
exit(EXIT_FAILURE);
}
static inline void __noreturn __die_harder(void)
{
- call_on_panic_funcs();
+ call_panic_handlers();
_exit(EXIT_FAILURE);
}