]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - sail/dr_5.c
fish: remove trailing whitespace
[bsdgames-darwin.git] / sail / dr_5.c
index 316a8da4a0628b196dc8636a5e7b2e228ec57efa..5846ccbb89057c6d7f1f64f738be4cde756ffa75 100644 (file)
@@ -1,4 +1,4 @@
-/*     $NetBSD: dr_5.c,v 1.6 1999/02/10 00:45:45 hubertf Exp $ */
+/*     $NetBSD: dr_5.c,v 1.14 2009/03/14 22:52:52 dholland Exp $       */
 
 /*
  * Copyright (c) 1983, 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.
  *
 #if 0
 static char sccsid[] = "@(#)dr_5.c     8.2 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: dr_5.c,v 1.6 1999/02/10 00:45:45 hubertf Exp $");
+__RCSID("$NetBSD: dr_5.c,v 1.14 2009/03/14 22:52:52 dholland Exp $");
 #endif
 #endif /* not lint */
 
+#include <sys/types.h>
 #include "extern.h"
 
 void
-subtract(from, totalfrom, crewfrom, fromcap, pcfrom)
-struct ship *from, *fromcap;
-int pcfrom;
-int  totalfrom, crewfrom[3];
+subtract(struct ship *from, struct ship *fromcap, int totalfrom, int *crewfrom,
+        int pcfrom)
 {
        int n;
 
@@ -62,19 +57,17 @@ int  totalfrom, crewfrom[3];
                                totalfrom = 0;
                        }
                }
-               Write(W_CREW, from, crewfrom[0], crewfrom[1], crewfrom[2], 0);
+               send_crew(from, crewfrom[0], crewfrom[1], crewfrom[2]);
        } else if (totalfrom) {
                pcfrom -= totalfrom;
                pcfrom = pcfrom < 0 ? 0 : pcfrom;
-               Write(W_PCREW, from, pcfrom, 0, 0, 0);
+               send_pcrew(from, pcfrom);
        }
 }
 
 int
-mensent(from, to, crew, captured, pc, isdefense)
-struct ship *from, *to, **captured;
-int crew[3], *pc;
-char isdefense;
+mensent(struct ship *from, struct ship *to, int *crew, struct ship **captured,
+       int *pc, int isdefense)
 {                                      /* returns # of crew squares sent */
        int men = 0;
        int n;