-/* $NetBSD: list.c,v 1.3 1995/03/21 15:04:18 cgd Exp $ */
+/* $NetBSD: list.c,v 1.9 2015/06/19 06:02:31 dholland Exp $ */
/*-
* Copyright (c) 1990, 1993
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
+ * 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* For more info on this and all of my stuff, mail edjames@berkeley.edu.
*/
+#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)list.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$NetBSD: list.c,v 1.3 1995/03/21 15:04:18 cgd Exp $";
+__RCSID("$NetBSD: list.c,v 1.9 2015/06/19 06:02:31 dholland Exp $");
#endif
#endif /* not lint */
-#include "include.h"
+#include <stdlib.h>
-PLANE *
-newplane()
+#include "def.h"
+#include "struct.h"
+#include "extern.h"
+#include "tunable.h"
+
+PLANE *
+newplane(void)
{
- return ((PLANE *) calloc(1, sizeof (PLANE)));
+ return calloc(1, sizeof (PLANE));
}
-append(l, p)
- LIST *l;
- PLANE *p;
+void
+append(LIST *l, PLANE *p)
{
PLANE *q = NULL, *r = NULL;
}
}
-delete(l, p)
- LIST *l;
- PLANE *p;
+void
+delete(LIST *l, PLANE *p)
{
if (l->head == NULL)
- loser(p, "deleted a non-existant plane! Get help!");
+ loser(p, "deleted a non-existent plane! Get help!");
if (l->head == p && l->tail == p)
l->head = l->tail = NULL;