--- pth_lib.c 2002/10/15 18:17:28 1.49
+++ pth_lib.c 2002/10/15 20:34:22 1.50
@@ -88,7 +88,7 @@
pth_attr_set(t_attr, PTH_ATTR_STACK_ADDR, NULL);
pth_sched = pth_spawn(t_attr, pth_scheduler, NULL);
if (pth_sched == NULL) {
- errno_shield {
+ errno_shield {
pth_attr_destroy(t_attr);
pth_scheduler_kill();
}
@@ -104,7 +104,7 @@
pth_attr_set(t_attr, PTH_ATTR_STACK_ADDR, NULL);
pth_main = pth_spawn(t_attr, (void *(*)(void *))(-1), NULL);
if (pth_main == NULL) {
- errno_shield {
+ errno_shield {
pth_attr_destroy(t_attr);
pth_scheduler_kill();
}
@@ -130,7 +130,7 @@
/* kill the package internals */
int pth_kill(void)
{
- if (pth_current != pth_main)
+ if (pth_current != pth_main)
return_errno(FALSE, EPERM);
pth_debug1("pth_kill: enter");
pth_thread_cleanup(pth_main);
@@ -163,7 +163,7 @@
rc += 1; /* pth_current only */
if (query & PTH_CTRL_GETTHREADS_WAITING)
rc += pth_pqueue_elements(&pth_WQ);
- if (query & PTH_CTRL_GETTHREADS_SUSPENDED)
+ if (query & PTH_CTRL_GETTHREADS_SUSPENDED)
rc += pth_pqueue_elements(&pth_SQ);
if (query & PTH_CTRL_GETTHREADS_DEAD)
rc += pth_pqueue_elements(&pth_DQ);
@@ -240,8 +240,8 @@
t->prio = pth_current->prio;
t->joinable = pth_current->joinable;
t->cancelstate = pth_current->cancelstate;
- pth_snprintf(t->name, PTH_TCB_NAMELEN, "%s.child@%d=0x%lx",
- pth_current->name, (unsigned int)time(NULL),
+ pth_snprintf(t->name, PTH_TCB_NAMELEN, "%s.child@%d=0x%lx",
+ pth_current->name, (unsigned int)time(NULL),
(unsigned long)pth_current);
}
else {
@@ -432,10 +432,10 @@
abort(); /* not reached! */
}
else {
- /*
- * main thread is special: exit the _process_
- * [double-cast to avoid warnings because of size]
- */
+ /*
+ * main thread is special: exit the _process_
+ * [double-cast to avoid warnings because of size]
+ */
pth_kill();
exit((int)((long)value));
abort(); /* not reached! */
|