[BACK]Return to main.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / games / atc

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/games/atc/main.c between version 1.17 and 1.18

version 1.17, 2006/06/07 09:35:03 version 1.18, 2008/01/31 05:19:44
Line 63  extern FILE *yyin;
Line 63  extern FILE *yyin;
 int  int
 main(int argc, char *argv[])  main(int argc, char *argv[])
 {  {
         int                     seed;          unsigned long           seed;
         int                     f_usage = 0, f_list = 0, f_showscore = 0;          int                     f_usage = 0, f_list = 0, f_showscore = 0;
         int                     f_printpath = 0;          int                     f_printpath = 0;
         const char              *file = NULL;          const char              *file = NULL;
Line 77  main(int argc, char *argv[])
Line 77  main(int argc, char *argv[])
         open_score_file();          open_score_file();
         (void)setgid(getgid());          (void)setgid(getgid());
   
         start_time = seed = time(NULL);          start_time = time(NULL);
           seed = start_time;
   
         while ((ch = getopt(argc, argv, ":u?lstpg:f:r:")) != -1) {          while ((ch = getopt(argc, argv, ":u?lstpg:f:r:")) != -1) {
                 switch (ch) {                  switch (ch) {
Line 107  main(int argc, char *argv[])
Line 108  main(int argc, char *argv[])
         }          }
         if (optind < argc)          if (optind < argc)
                 f_usage++;                  f_usage++;
         srandom((unsigned long)seed);          srandom(seed);
   
         if (f_usage)          if (f_usage)
                 (void)fprintf(stderr,                  (void)fprintf(stderr,

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

CVSweb <webmaster@jp.NetBSD.org>