]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - sail/dr_5.c
remove redundant decls.
[bsdgames-darwin.git] / sail / dr_5.c
index 229577445aeba7ce4ab353668613ccca2e9bdd11..93d630a18975920f8b6ee958eb628744af4577a9 100644 (file)
@@ -1,4 +1,4 @@
-/*     $NetBSD: dr_5.c,v 1.3 1995/04/22 10:36:51 cgd Exp $     */
+/*     $NetBSD: dr_5.c,v 1.11 2001/02/05 01:10:09 christos Exp $       */
 
 /*
  * Copyright (c) 1983, 1993
  * SUCH DAMAGE.
  */
 
+#include <sys/cdefs.h>
 #ifndef lint
 #if 0
-static char sccsid[] = "@(#)dr_5.c     8.1 (Berkeley) 5/31/93";
+static char sccsid[] = "@(#)dr_5.c     8.2 (Berkeley) 4/28/95";
 #else
-static char rcsid[] = "$NetBSD: dr_5.c,v 1.3 1995/04/22 10:36:51 cgd Exp $";
+__RCSID("$NetBSD: dr_5.c,v 1.11 2001/02/05 01:10:09 christos Exp $");
 #endif
 #endif /* not lint */
 
-#include "externs.h"
+#include <sys/types.h>
+#include "extern.h"
 
-subtract(from, totalfrom, crewfrom, fromcap, pcfrom)
-struct ship *from, *fromcap;
-int pcfrom;
-register int  totalfrom, crewfrom[3];
+void
+subtract(struct ship *from, struct ship *fromcap, int totalfrom, int *crewfrom, int pcfrom)
 {
-       register int n;
+       int n;
 
        if (fromcap == from && totalfrom) {             /* if not captured */
                for (n = 0; n < 3; n++) {
@@ -60,23 +60,21 @@ register int  totalfrom, crewfrom[3];
                                totalfrom = 0;
                        }
                }
-               Write(W_CREW, from, 0, crewfrom[0], crewfrom[1], crewfrom[2], 0);
+               Write(W_CREW, from, crewfrom[0], crewfrom[1], crewfrom[2], 0);
        } else if (totalfrom) {
                pcfrom -= totalfrom;
                pcfrom = pcfrom < 0 ? 0 : pcfrom;
-               Write(W_PCREW, from, 0, pcfrom, 0, 0, 0);
+               Write(W_PCREW, from, pcfrom, 0, 0, 0);
        }
 }
 
-mensent(from, to, crew, captured, pc, isdefense)
-struct ship *from, *to, **captured;
-int crew[3], *pc;
-char isdefense;
+int
+mensent(struct ship *from, struct ship *to, int *crew, struct ship **captured, int *pc, int isdefense)
 {                                      /* returns # of crew squares sent */
        int men = 0;
-       register int n;
+       int n;
        int c1, c2, c3;
-       register struct BP *bp;
+       struct BP *bp;
 
        *pc = from->file->pcrew;
        *captured = from->file->captured;