-/* $NetBSD: misc.c,v 1.7 2001/01/01 21:57:38 jwise Exp $ */
+/* $NetBSD: misc.c,v 1.12 2001/02/05 01:10:10 christos Exp $ */
/*
* Copyright (c) 1983, 1993
#if 0
static char sccsid[] = "@(#)misc.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: misc.c,v 1.7 2001/01/01 21:57:38 jwise Exp $");
+__RCSID("$NetBSD: misc.c,v 1.12 2001/02/05 01:10:10 christos Exp $");
#endif
#endif /* not lint */
-#include <fcntl.h>
-#include <stdlib.h>
+#include <ctype.h>
+#include <stdio.h>
#include <unistd.h>
+#include <string.h>
#include "extern.h"
#include "pathnames.h"
#define distance(x,y) (abs(x) >= abs(y) ? abs(x) + abs(y)/2 : abs(y) + abs(x)/2)
+static int angle(int, int);
+
/* XXX */
int
range(struct ship *from, struct ship *to)
return closest;
}
-int
+static int
angle(int dr, int dc)
{
int i;