summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authortheraven <theraven@FreeBSD.org>2011-12-15 11:16:41 +0000
committertheraven <theraven@FreeBSD.org>2011-12-15 11:16:41 +0000
commit09e4cb3bed3452f23085cd67bb9b8eff73657bb1 (patch)
treea9ad0d8a4875e7247e37275875d546b3e61ac5f2 /lib
parent7eaffbbb43d1deb6111343c0bb151de289211791 (diff)
downloadFreeBSD-src-09e4cb3bed3452f23085cd67bb9b8eff73657bb1.zip
FreeBSD-src-09e4cb3bed3452f23085cd67bb9b8eff73657bb1.tar.gz
Small style(9) improvements.
Approved by: dim (mentor)
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/stdlib/quick_exit.c6
1 files changed, 4 insertions, 2 deletions
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;
OpenPOWER on IntegriCloud