remove #ifdef SVR4

This commit is contained in:
dholland 2010-03-29 05:16:08 +00:00
parent b7b2c88aa1
commit 5cea3c1fc6
2 changed files with 4 additions and 12 deletions

View File

@ -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 * Copyright (c) 1994
@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1994\
#if 0 #if 0
static char sccsid[] = "@(#)main.c 8.4 (Berkeley) 5/4/95"; static char sccsid[] = "@(#)main.c 8.4 (Berkeley) 5/4/95";
#else #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
#endif /* not lint */ #endif /* not lint */
@ -145,11 +145,7 @@ main(int argc, char **argv)
} }
if (!debug) if (!debug)
#ifdef SVR4
srand(time(0));
#else
srandom(time(0)); srandom(time(0));
#endif
if (interactive) if (interactive)
cursinit(); /* initialize curses */ cursinit(); /* initialize curses */
again: again:

View File

@ -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 * Copyright (c) 1994
@ -37,7 +37,7 @@
#if 0 #if 0
static char sccsid[] = "@(#)pickmove.c 8.2 (Berkeley) 5/3/95"; static char sccsid[] = "@(#)pickmove.c 8.2 (Berkeley) 5/3/95";
#else #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
#endif /* not lint */ #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) if (sp->s_wval != sp1->s_wval)
return (0); return (0);
#ifdef SVR4
return (rand() & 1);
#else
return (random() & 1); return (random() & 1);
#endif
} }
static int curcolor; /* implicit parameter to makecombo() */ static int curcolor; /* implicit parameter to makecombo() */