summaryrefslogtreecommitdiff
path: root/die.c
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.c
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.c')
-rw-r--r--die.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/die.c b/die.c
index 523107e..4e525f9 100644
--- a/die.c
+++ b/die.c
@@ -14,7 +14,7 @@ struct panic_handler {
static struct panic_handler *panic_handlers;
-void panic_func_add(void (*on_panic)(void *arg), void *arg)
+void panic_handler_add(void (*on_panic)(void *arg), void *arg)
{
struct panic_handler *handler = xmallocz(sizeof(*handler));
@@ -26,7 +26,7 @@ void panic_func_add(void (*on_panic)(void *arg), void *arg)
panic_handlers = handler;
};
-void call_on_panic_funcs(void)
+void call_panic_handlers(void)
{
struct panic_handler *it;
pid_t pid = getpid();