]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - gomoku/bdinit.c
Fixed wrong use of the <ctype.h> functions by adding an explicit conversion
[bsdgames-darwin.git] / gomoku / bdinit.c
index dcbbcaca9abcd9da062466e588acd6b7588191c5..53ea7d2516246b1c3872fd8ff20a95ef1f7310ce 100644 (file)
@@ -1,4 +1,4 @@
-/*     $NetBSD: bdinit.c,v 1.3 1997/01/03 01:35:24 cgd Exp $   */
+/*     $NetBSD: bdinit.c,v 1.5 2003/08/07 09:37:15 agc Exp $   */
 
 /*
  * Copyright (c) 1994
  * 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.
  *
  * SUCH DAMAGE.
  */
 
+#include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "from: @(#)bdinit.c     8.2 (Berkeley) 5/3/95";
 #else
-static char rcsid[] = "$NetBSD: bdinit.c,v 1.3 1997/01/03 01:35:24 cgd Exp $";
+__RCSID("$NetBSD: bdinit.c,v 1.5 2003/08/07 09:37:15 agc Exp $");
 #endif
 #endif /* not lint */
 
 #include <string.h>
 #include "gomoku.h"
 
+void
 bdinit(bp)
        struct spotstr *bp;
 {
-       register int i, j, r;
-       register struct spotstr *sp;
-       register struct combostr *cbp;
+       int i, j, r;
+       struct spotstr *sp;
+       struct combostr *cbp;
 
        movenum = 1;
 
@@ -173,11 +171,12 @@ bdinit(bp)
  * As pieces are played, it can make frames not overlap if there are no
  * common open spaces shared between the two frames.
  */
+void
 init_overlap()
 {
-       register struct spotstr *sp1, *sp2;
-       register struct combostr *cbp;
-       register int i, f, r, n, d1, d2;
+       struct spotstr *sp1, *sp2;
+       struct combostr *cbp;
+       int i, f, r, n, d1, d2;
        int mask, bmask, vertex, s;
        u_char *str;
        short *ip;