svn commit: r228528 - head/lib/libc/stdlib

David Chisnall theraven at FreeBSD.org
Thu Dec 15 11:16:41 UTC 2011


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;


More information about the svn-src-all mailing list