-/* $NetBSD: update.c,v 1.8 1998/11/10 13:43:31 hubertf Exp $ */
+/* $NetBSD: update.c,v 1.10 1999/07/25 00:24:39 hubertf Exp $ */
/*-
* Copyright (c) 1990, 1993
#if 0
static char sccsid[] = "@(#)update.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: update.c,v 1.8 1998/11/10 13:43:31 hubertf Exp $");
+__RCSID("$NetBSD: update.c,v 1.10 1999/07/25 00:24:39 hubertf Exp $");
#endif
#endif not lint
void
update(dummy)
- int dummy;
+ int dummy __attribute__((__unused__));
{
int i, dir_diff, unclean;
PLANE *pp, *p1, *p2;
p.plane_no = pnum;
pp = newplane();
+ if (pp == NULL)
+ loser(NULL, "Out of memory!");
memcpy(pp, &p, sizeof (p));
if (pp->orig_type == T_AIRPORT)