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

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

Diff for /src/games/larn/fortune.c between version 1.5 and 1.6

version 1.5, 2003/08/07 09:37:23 version 1.6, 2008/01/28 05:38:53
Line 48  __RCSID("$NetBSD$");
Line 48  __RCSID("$NetBSD$");
  * function to return a random fortune from the fortune file   * function to return a random fortune from the fortune file
  */   */
   
 char           *flines[] = {  const char     *flines[] = {
         "gem value = gem * 2 ^ perfection",          "gem value = gem * 2 ^ perfection",
         "sitting down can have unexpected results",          "sitting down can have unexpected results",
         "don't pry into the affairs of others",          "don't pry into the affairs of others",
Line 87  char           *flines[] = {
Line 87  char           *flines[] = {
   
 #define NFORTUNES       34  #define NFORTUNES       34
   
 char *  const char *
 fortune()  fortune(void)
 {  {
         return (flines[random() % NFORTUNES]);          return (flines[random() % NFORTUNES]);
 }  }

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

CVSweb <webmaster@jp.NetBSD.org>