Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Dec 2011 11:16:41 +0000 (UTC)
From:      David Chisnall <theraven@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r228528 - head/lib/libc/stdlib
Message-ID:  <201112151116.pBFBGfjY045196@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: theraven
Date: Thu Dec 15 11:16:41 2011
New Revision: 228528
URL: http://svn.freebsd.org/changeset/base/228528

Log:
  Small style(9) improvements.
  
  Approved by:	dim (mentor)

Modified:
  head/lib/libc/stdlib/quick_exit.c

Modified: head/lib/libc/stdlib/quick_exit.c
==============================================================================
--- head/lib/libc/stdlib/quick_exit.c	Thu Dec 15 11:15:23 2011	(r228527)
+++ head/lib/libc/stdlib/quick_exit.c	Thu Dec 15 11:16:41 2011	(r228528)
@@ -51,10 +51,12 @@ static struct quick_exit_handler *handle
 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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112151116.pBFBGfjY045196>