From 97c987240866817a96bf644288fc5f8aaeaf0f5a Mon Sep 17 00:00:00 2001 From: deischen Date: Tue, 28 Dec 1999 18:13:04 +0000 Subject: -Wall and minor style(9) cleanups. --- lib/libpthread/thread/thr_fork.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'lib/libpthread/thread/thr_fork.c') diff --git a/lib/libpthread/thread/thr_fork.c b/lib/libpthread/thread/thr_fork.c index b8d72dc..08ea812 100644 --- a/lib/libpthread/thread/thr_fork.c +++ b/lib/libpthread/thread/thr_fork.c @@ -33,6 +33,7 @@ */ #include #include +#include #include #include #ifdef _THREAD_SAFE @@ -130,29 +131,28 @@ fork(void) pthread_save, tle); if (pthread_save->attr.stackaddr_attr == - NULL && pthread_save->stack != NULL) + NULL && pthread_save->stack != NULL) { if (pthread_save->attr.stacksize_attr == PTHREAD_STACK_DEFAULT) { /* - * Default-size stack. Cache - * it: + * Default-size stack. + * Cache it: */ struct stack *spare_stack; spare_stack = (pthread_save->stack - + PTHREAD_STACK_DEFAULT - - sizeof(struct stack)); - SLIST_INSERT_HEAD( - &_stackq, - spare_stack, - qe); + + PTHREAD_STACK_DEFAULT + - sizeof(struct stack)); + SLIST_INSERT_HEAD(&_stackq, + spare_stack, qe); } else /* * Free the stack of * the dead thread: */ free(pthread_save->stack); + } if (pthread_save->specific_data != NULL) free(pthread_save->specific_data); -- cgit v1.1