From 09e4cb3bed3452f23085cd67bb9b8eff73657bb1 Mon Sep 17 00:00:00 2001 From: theraven Date: Thu, 15 Dec 2011 11:16:41 +0000 Subject: Small style(9) improvements. Approved by: dim (mentor) --- lib/libc/stdlib/quick_exit.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/libc/stdlib/quick_exit.c b/lib/libc/stdlib/quick_exit.c index 33f9348..ef8cdb1 100644 --- a/lib/libc/stdlib/quick_exit.c +++ b/lib/libc/stdlib/quick_exit.c @@ -51,10 +51,12 @@ static struct quick_exit_handler *handlers; int at_quick_exit(void (*func)(void)) { - struct quick_exit_handler *h = malloc(sizeof(struct quick_exit_handler)); + struct quick_exit_handler *h; + + h = malloc(sizeof(*h)); if (NULL == h) - return 1; + return (1); h->cleanup = func; pthread_mutex_lock(&atexit_mutex); h->next = handlers; -- cgit v1.1