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

Diff for /src/usr.bin/mandoc/main.c between version 1.182 and 1.183

version 1.182, 2017/01/09 17:49:55 version 1.183, 2017/01/27 13:47:17
Line 117 
Line 117 
         struct manpage  *res, *resp;          struct manpage  *res, *resp;
         char            *conf_file, *defpaths;          char            *conf_file, *defpaths;
         const char      *sec;          const char      *sec;
           const char      *thisarg;
         size_t           i, sz;          size_t           i, sz;
         int              prio, best_prio;          int              prio, best_prio;
         enum outmode     outmode;          enum outmode     outmode;
Line 223 
Line 224 
                         break;                          break;
                 case 'O':                  case 'O':
                         search.outkey = optarg;                          search.outkey = optarg;
                         while (optarg != NULL)                          while (optarg != NULL) {
                                 manconf_output(&conf.output,                                  thisarg = optarg;
                                     strsep(&optarg, ","));                                  if (manconf_output(&conf.output,
                                       strsep(&optarg, ","), 0) == 0)
                                           continue;
                                   warnx("-O %s: Bad argument", thisarg);
                                   return (int)MANDOCLEVEL_BADARG;
                           }
                         break;                          break;
                 case 'S':                  case 'S':
                         search.arch = optarg;                          search.arch = optarg;

Legend:
Removed from v.1.182  
changed lines
  Added in v.1.183