]> git.pond.sub.org Git - empserver/blobdiff - src/lib/lwp/queue.c
Indented with src/scripts/indent-emp.
[empserver] / src / lib / lwp / queue.c
index 1aa5ad481e142f1b91b5094202a1e53600ca87e2..b44e85f93e6976d29b9cf20523136585eaf0fe34 100644 (file)
 
 #if defined(_EMPTH_LWP)
 
-struct lwpProc *lwpGetFirst(q)
-       struct lwpQueue *q;
+struct lwpProc *
+lwpGetFirst(q)
+struct lwpQueue *q;
 {
-       struct lwpProc *head;
+    struct lwpProc *head;
 
-       if ((head = q->head) && !(q->head = head->next))
-               q->tail = 0;
-       return (head);
+    if ((head = q->head) && !(q->head = head->next))
+       q->tail = 0;
+    return (head);
 }
 
-void lwpAddTail(q, p)
-       register struct lwpQueue *q;
-       register struct lwpProc *p;
+void
+lwpAddTail(q, p)
+register struct lwpQueue *q;
+register struct lwpProc *p;
 {
-       if (!q->tail)
-               q->head = p;
-       else
-               q->tail->next = p;
-       q->tail = p;
-       p->next = 0;
+    if (!q->tail)
+       q->head = p;
+    else
+       q->tail->next = p;
+    q->tail = p;
+    p->next = 0;
 }
 
 #endif