From 5cea3c1fc6abfdbeff63b9fbac6f117217eebab9 Mon Sep 17 00:00:00 2001 From: dholland Date: Mon, 29 Mar 2010 05:16:08 +0000 Subject: [PATCH] remove #ifdef SVR4 --- games/gomoku/main.c | 8 ++------ games/gomoku/pickmove.c | 8 ++------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/games/gomoku/main.c b/games/gomoku/main.c index a09d417c2a6f..4d5cf2dd5d0d 100644 --- a/games/gomoku/main.c +++ b/games/gomoku/main.c @@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1994\ #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 @@ main(int argc, char **argv) } if (!debug) -#ifdef SVR4 - srand(time(0)); -#else srandom(time(0)); -#endif if (interactive) cursinit(); /* initialize curses */ again: diff --git a/games/gomoku/pickmove.c b/games/gomoku/pickmove.c index 4bdf82ba1558..803168c60db5 100644 --- a/games/gomoku/pickmove.c +++ b/games/gomoku/pickmove.c @@ -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 @@ better(const struct spotstr *sp, const struct spotstr *sp1, int us) 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() */