diff options
author | rpj <rpj> | 1998-07-29 01:43:47 +0000 |
---|---|---|
committer | rpj <rpj> | 1998-07-29 01:43:47 +0000 |
commit | 0379281c3fc3bedede0177d43871ae5b1006eef7 (patch) | |
tree | 2225cae1200d5508d0a0264c542c87e397d51894 /cleanup.c | |
parent | eca19329e11c472df9b62da0a643de6f90bb7f46 (diff) |
Wed Jul 29 11:39:03 1998 Ross Johnson <rpj@ixobrychus.canberra.edu.au>
* 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++?
Diffstat (limited to 'cleanup.c')
-rw-r--r-- | cleanup.c | 19 |
1 files changed, 10 insertions, 9 deletions
@@ -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; |