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

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

Diff for /src/games/worms/worms.c between version 1.20 and 1.21

version 1.20, 2009/08/12 08:57:30 version 1.21, 2011/08/31 16:24:56
Line 206  main(argc, argv)
Line 206  main(argc, argv)
         while ((ch = getopt(argc, argv, "d:fl:n:t")) != -1)          while ((ch = getopt(argc, argv, "d:fl:n:t")) != -1)
                 switch(ch) {                  switch(ch) {
                 case 'd':                  case 'd':
                         if ((delay = (unsigned int)strtoul(optarg, (char **)NULL, 10)) < 1 || delay > 1000)                          if ((delay = (unsigned int)strtoul(optarg, NULL, 10)) < 1 || delay > 1000)
                                 errx(1, "invalid delay (1-1000)");                                  errx(1, "invalid delay (1-1000)");
                         delay *= 1000;  /* ms -> us */                          delay *= 1000;  /* ms -> us */
                         break;                          break;

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

CVSweb <webmaster@jp.NetBSD.org>