[BACK]Return to apropos.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/Attic/apropos.c between version 1.14 and 1.15

version 1.14, 2011/12/28 01:17:01 version 1.15, 2012/01/05 22:07:42
Line 27 
Line 27 
   
 static  int      cmp(const void *, const void *);  static  int      cmp(const void *, const void *);
 static  void     list(struct res *, size_t, void *);  static  void     list(struct res *, size_t, void *);
 static  void     usage(void);  
   
 static  char    *progname;  static  char    *progname;
   
Line 77 
Line 76 
                         opts.cat = optarg;                          opts.cat = optarg;
                         break;                          break;
                 default:                  default:
                         usage();                          fprintf(stderr,
                               "usage: %s [-C file] [-M path] [-m path]"
                               " [-S arch] [-s section]%s ...\n",
                               progname,
                               whatis ? " name" :
                                   "\n               expression");
                         return(EXIT_FAILURE);                          return(EXIT_FAILURE);
                 }                  }
   
Line 136 
Line 140 
   
         return(strcasecmp(((const struct res *)p1)->title,          return(strcasecmp(((const struct res *)p1)->title,
                                 ((const struct res *)p2)->title));                                  ((const struct res *)p2)->title));
 }  
   
 static void  
 usage(void)  
 {  
   
         fprintf(stderr, "usage: %s "  
                         "[-C file] "  
                         "[-M path] "  
                         "[-m path] "  
                         "[-S arch] "  
                         "[-s section] "  
                         "expression ...\n",  
                         progname);  
 }  }

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15