]> git.pond.sub.org Git - empserver/blobdiff - src/lib/lwp/queue.c
Update copyright notice
[empserver] / src / lib / lwp / queue.c
index b1a9842cc516184081ea12caaab6a68364ffd8a0..7c8d7eecbba1b07ecb8f31846edbe07eec95e071 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1994-2008, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1994-2010, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *  Copyright (C) 1991-3 Stephen Crane
  *
  *  ---
  *
  *  queue.c: queue manipulation routines
- * 
+ *
  *  Known contributors to this file:
  *
  */
 
 #include <config.h>
 
+#include <stddef.h>
 #include "lwp.h"
 #include "lwpint.h"
 
@@ -43,7 +44,7 @@ lwpGetFirst(struct lwpQueue *q)
     struct lwpProc *head;
 
     if ((head = q->head) && !(q->head = head->next))
-       q->tail = 0;
+       q->tail = NULL;
     return head;
 }
 
@@ -55,5 +56,5 @@ lwpAddTail(struct lwpQueue *q, struct lwpProc *p)
     else
        q->tail->next = p;
     q->tail = p;
-    p->next = 0;
+    p->next = NULL;
 }