summaryrefslogtreecommitdiff
path: root/fortune/fortune-0.2.patch
blob: 19f343f3bd38bd2a986dc2e27a7be1f6a46bbb74 (plain)
    1 diff -Nru fortune-0.2/fortune.c fortune-0.2-new/fortune.c
    2 --- fortune-0.2/fortune.c	1998-10-25 01:05:19.000000000 +0200
    3 +++ fortune-0.2-new/fortune.c	2002-09-15 18:46:36.000000000 +0200
    4 @@ -30,7 +30,7 @@
    5  #warn Your system headers say that mmap is not supported!
    6  #endif
    7  
    8 -#define VERSION "0.1"
    9 +#define VERSION "0.2"
   10  #define FORTUNEDIR "/usr/share/games/fortunes"
   11  
   12  struct option const long_options[] =
   13 @@ -38,6 +38,8 @@
   14    {"help",     no_argument,       0, 'h'},
   15    {"help",     no_argument,       0, '?'},
   16    {"match",    required_argument, 0, 'm'},
   17 +  {"set",      no_argument,       0, 's'},
   18 +  {"out",      no_argument,       0, 'o'},
   19    {"version",  no_argument,       0, 'V'},
   20    {(char *)0,  0,                 0, (char)0}
   21  };
   22 @@ -140,7 +142,7 @@
   23    char *re;
   24  
   25    progname=argv[0]; re=NULL;
   26 -  while ((c = getopt_long(argc, argv, "h?m:V",
   27 +  while ((c = getopt_long(argc, argv, "h?som:V",
   28  			  long_options, (int *) 0)) != EOF) {
   29      switch (c) {
   30        case 0  : break;
   31 @@ -150,6 +152,8 @@
   32                  return 0;
   33        case 'V': fprintf(stderr,"%s version %s\n", progname, VERSION);
   34  		return 0;
   35 +      case 'o': break;
   36 +      case 's': break;
   37        case 'm': re=optarg;
   38        default : break;
   39      }

Generated by cgit