summaryrefslogtreecommitdiffstats
path: root/sail/dr_4.c
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>1997-10-13 19:42:53 +0000
committerchristos <christos@NetBSD.org>1997-10-13 19:42:53 +0000
commit7e5c0c57606f0f1e9335aa74ef5ea8c8048a9b2c (patch)
treee32f911a4774980914f141c9b101745fb106eefe /sail/dr_4.c
parentc1a3f2353b38d22d94cbc0101f3115b8e2eefc30 (diff)
downloadbsdgames-darwin-7e5c0c57606f0f1e9335aa74ef5ea8c8048a9b2c.tar.gz
bsdgames-darwin-7e5c0c57606f0f1e9335aa74ef5ea8c8048a9b2c.tar.zst
bsdgames-darwin-7e5c0c57606f0f1e9335aa74ef5ea8c8048a9b2c.zip
Warns fixes:
use varargs properly use unsigned chars where appropriate fix typos eliminate gcc warnings
Diffstat (limited to 'sail/dr_4.c')
-rw-r--r--sail/dr_4.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/sail/dr_4.c b/sail/dr_4.c
index ddf23e5c..fd8b0889 100644
--- a/sail/dr_4.c
+++ b/sail/dr_4.c
@@ -1,4 +1,4 @@
-/* $NetBSD: dr_4.c,v 1.4 1997/01/07 12:42:15 tls Exp $ */
+/* $NetBSD: dr_4.c,v 1.5 1997/10/13 19:43:39 christos Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -33,20 +33,23 @@
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)dr_4.c 8.2 (Berkeley) 4/28/95";
#else
-static char rcsid[] = "$NetBSD: dr_4.c,v 1.4 1997/01/07 12:42:15 tls Exp $";
+__RCSID("$NetBSD: dr_4.c,v 1.5 1997/10/13 19:43:39 christos Exp $");
#endif
#endif /* not lint */
#include "extern.h"
+#include <stdlib.h>
+void
ungrap(from, to)
-register struct ship *from, *to;
+struct ship *from, *to;
{
- register k;
+ int k;
char friend;
if ((k = grappled2(from, to)) == 0)
@@ -60,8 +63,9 @@ register struct ship *from, *to;
}
}
+void
grap(from, to)
-register struct ship *from, *to;
+struct ship *from, *to;
{
if (capship(from)->nationality != capship(to)->nationality && die() > 2)
return;