File tree Expand file tree Collapse file tree 3 files changed +13
-10
lines changed
Expand file tree Collapse file tree 3 files changed +13
-10
lines changed Original file line number Diff line number Diff line change 1- /* $NetBSD: extern.c,v 1.9 2005/08/10 17:53:28 rpaulo Exp $ */
1+ /* $NetBSD: extern.c,v 1.10 2008/01/31 05:19:44 dholland Exp $ */
22
33/*-
44 * Copyright (c) 1990, 1993
4646#if 0
4747static char sccsid [] = "@(#)extern.c 8.1 (Berkeley) 5/31/93" ;
4848#else
49- __RCSID ("$NetBSD: extern.c,v 1.9 2005/08/10 17:53:28 rpaulo Exp $" );
49+ __RCSID ("$NetBSD: extern.c,v 1.10 2008/01/31 05:19:44 dholland Exp $" );
5050#endif
5151#endif /* not lint */
5252
5353#include "include.h"
5454
5555char GAMES [] = "Game_List" ;
5656
57- int clck , safe_planes , start_time , test_mode ;
57+ int clck , safe_planes , test_mode ;
58+ time_t start_time ;
5859
5960const char * filename ;
6061
Original file line number Diff line number Diff line change 1- /* $NetBSD: extern.h,v 1.13 2005/08/10 17:53:28 rpaulo Exp $ */
1+ /* $NetBSD: extern.h,v 1.14 2008/01/31 05:19:44 dholland Exp $ */
22
33/*-
44 * Copyright (c) 1990, 1993
4646extern char GAMES [];
4747extern const char * filename ;
4848
49- extern int clck , safe_planes , start_time , test_mode ;
49+ extern int clck , safe_planes , test_mode ;
50+ extern time_t start_time ;
5051
5152#if 0
5253extern FILE * filein , * fileout ;
Original file line number Diff line number Diff line change 1- /* $NetBSD: main.c,v 1.17 2006/06/07 09:35:03 jnemeth Exp $ */
1+ /* $NetBSD: main.c,v 1.18 2008/01/31 05:19:44 dholland Exp $ */
22
33/*-
44 * Copyright (c) 1990, 1993
@@ -51,7 +51,7 @@ __COPYRIGHT("@(#) Copyright (c) 1990, 1993\n\
5151#if 0
5252static char sccsid [] = "@(#)main.c 8.1 (Berkeley) 5/31/93" ;
5353#else
54- __RCSID ("$NetBSD: main.c,v 1.17 2006/06/07 09:35:03 jnemeth Exp $" );
54+ __RCSID ("$NetBSD: main.c,v 1.18 2008/01/31 05:19:44 dholland Exp $" );
5555#endif
5656#endif /* not lint */
5757
@@ -63,7 +63,7 @@ extern FILE *yyin;
6363int
6464main (int argc , char * argv [])
6565{
66- int seed ;
66+ unsigned long seed ;
6767 int f_usage = 0 , f_list = 0 , f_showscore = 0 ;
6868 int f_printpath = 0 ;
6969 const char * file = NULL ;
@@ -77,7 +77,8 @@ main(int argc, char *argv[])
7777 open_score_file ();
7878 (void )setgid (getgid ());
7979
80- start_time = seed = time (NULL );
80+ start_time = time (NULL );
81+ seed = start_time ;
8182
8283 while ((ch = getopt (argc , argv , ":u?lstpg:f:r:" )) != -1 ) {
8384 switch (ch ) {
@@ -107,7 +108,7 @@ main(int argc, char *argv[])
107108 }
108109 if (optind < argc )
109110 f_usage ++ ;
110- srandom (( unsigned long ) seed );
111+ srandom (seed );
111112
112113 if (f_usage )
113114 (void )fprintf (stderr ,
You can’t perform that action at this time.
0 commit comments