Module Name: src
Committed By: dholland
Date: Mon Mar 29 05:16:08 UTC 2010
Modified Files:
src/games/gomoku: main.c pickmove.c
Log Message:
remove #ifdef SVR4
To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/games/gomoku/main.c
cvs rdiff -u -r1.19 -r1.20 src/games/gomoku/pickmove.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/games/gomoku/main.c
diff -u src/games/gomoku/main.c:1.24 src/games/gomoku/main.c:1.25
--- src/games/gomoku/main.c:1.24 Mon Mar 29 04:28:47 2010
+++ src/games/gomoku/main.c Mon Mar 29 05:16:08 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.24 2010/03/29 04:28:47 dholland Exp $ */
+/* $NetBSD: main.c,v 1.25 2010/03/29 05:16:08 dholland Exp $ */
/*
* Copyright (c) 1994
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)main.c 8.4 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: main.c,v 1.24 2010/03/29 04:28:47 dholland Exp $");
+__RCSID("$NetBSD: main.c,v 1.25 2010/03/29 05:16:08 dholland Exp $");
#endif
#endif /* not lint */
@@ -145,11 +145,7 @@
}
if (!debug)
-#ifdef SVR4
- srand(time(0));
-#else
srandom(time(0));
-#endif
if (interactive)
cursinit(); /* initialize curses */
again:
Index: src/games/gomoku/pickmove.c
diff -u src/games/gomoku/pickmove.c:1.19 src/games/gomoku/pickmove.c:1.20
--- src/games/gomoku/pickmove.c:1.19 Wed Aug 12 06:19:17 2009
+++ src/games/gomoku/pickmove.c Mon Mar 29 05:16:08 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: pickmove.c,v 1.19 2009/08/12 06:19:17 dholland Exp $ */
+/* $NetBSD: pickmove.c,v 1.20 2010/03/29 05:16:08 dholland Exp $ */
/*
* Copyright (c) 1994
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)pickmove.c 8.2 (Berkeley) 5/3/95";
#else
-__RCSID("$NetBSD: pickmove.c,v 1.19 2009/08/12 06:19:17 dholland Exp $");
+__RCSID("$NetBSD: pickmove.c,v 1.20 2010/03/29 05:16:08 dholland Exp $");
#endif
#endif /* not lint */
@@ -217,11 +217,7 @@
if (sp->s_wval != sp1->s_wval)
return (0);
-#ifdef SVR4
- return (rand() & 1);
-#else
return (random() & 1);
-#endif
}
static int curcolor; /* implicit parameter to makecombo() */