From 0379281c3fc3bedede0177d43871ae5b1006eef7 Mon Sep 17 00:00:00 2001 From: rpj Date: Wed, 29 Jul 1998 01:43:47 +0000 Subject: Wed Jul 29 11:39:03 1998 Ross Johnson * cleanup.c (_pthread_handler_push): Same as below. * create.c (pthread_create): Same as below. * private.c (_pthread_new_thread): Rename "new" to "new_thread". Since when has a C programmer been required to know C++? --- cleanup.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'cleanup.c') diff --git a/cleanup.c b/cleanup.c index 9bf4a68..87aad78 100644 --- a/cleanup.c +++ b/cleanup.c @@ -17,36 +17,37 @@ _pthread_handler_push(int stack, { /* Place the new handler into the list so that handlers are popped off in the order given by poporder. */ - _pthread_handler_node_t * new; + _pthread_handler_node_t * new_thread; _pthread_handler_node_t * next; _pthread_handler_node_t ** stacktop; stacktop = _PTHREAD_STACK(stack); - new = (_pthread_handler_node_t *) malloc(sizeof(_pthread_handler_node_t)); + new_thread = + (_pthread_handler_node_t *) malloc(sizeof(_pthread_handler_node_t)); - if (new == NULL) + if (new_thread == NULL) { return ENOMEM; } - new->routine = routine; - new->arg = arg; + new_thread->routine = routine; + new_thread->arg = arg; if (poporder == _PTHREAD_HANDLER_POP_LIFO) { /* Add the new node to the start of the list. */ - new->next = *stacktop; + new_thread->next = *stacktop; *stacktop = next; } else { /* Add the new node to the end of the list. */ - new->next = NULL; + new_thread->next = NULL; if (*stacktop == NULL) { - *stacktop = new; + *stacktop = new_thread; } else { @@ -57,7 +58,7 @@ _pthread_handler_push(int stack, next = next->next; } - next = new; + next = new_thread; } } return 0; -- cgit v1.2.3