[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.19 and 1.20

version 1.19, 2013/12/31 03:41:09 version 1.20, 2014/01/06 03:02:39
Line 39 
Line 39 
         char            *defpaths, *auxpaths;          char            *defpaths, *auxpaths;
         char            *conf_file;          char            *conf_file;
         char            *progname;          char            *progname;
         char            *outkey;          const char      *outkey;
         extern char     *optarg;          extern char     *optarg;
         extern int       optind;          extern int       optind;
   
Line 56 
Line 56 
   
         auxpaths = defpaths = NULL;          auxpaths = defpaths = NULL;
         conf_file = NULL;          conf_file = NULL;
         outkey = NULL;          outkey = "Nd";
   
         while (-1 != (ch = getopt(argc, argv, "C:M:m:O:S:s:")))          while (-1 != (ch = getopt(argc, argv, "C:M:m:O:S:s:")))
                 switch (ch) {                  switch (ch) {
Line 100 
Line 100 
   
         for (i = 0; i < sz; i++) {          for (i = 0; i < sz; i++) {
                 printf("%s - %s\n", res[i].names,                  printf("%s - %s\n", res[i].names,
                     NULL == outkey ? res[i].desc :  
                     NULL == res[i].output ? "" : res[i].output);                      NULL == res[i].output ? "" : res[i].output);
                 free(res[i].file);                  free(res[i].file);
                 free(res[i].names);                  free(res[i].names);
                 free(res[i].desc);  
                 free(res[i].output);                  free(res[i].output);
         }          }
   

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