[BACK]Return to man_validate.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/man_validate.c between version 1.68 and 1.69

version 1.68, 2011/04/09 15:29:40 version 1.69, 2011/04/13 09:57:08
Line 325  static int
Line 325  static int
 check_sec(CHKARGS)  check_sec(CHKARGS)
 {  {
   
         if (MAN_HEAD == n->type && 0 == n->nchild) {          if ( ! (MAN_HEAD == n->type && 0 == n->nchild))
                 man_nmsg(m, n, MANDOCERR_SYNTARGCOUNT);                  return(1);
                 return(0);  
         } else if (MAN_BODY == n->type && 0 == n->nchild)  
                 mandoc_msg(MANDOCERR_ARGCWARN, m->parse, n->line,  
                                 n->pos, "want children (have none)");  
   
         return(1);          man_nmsg(m, n, MANDOCERR_SYNTARGCOUNT);
           return(0);
 }  }
   
   

Legend:
Removed from v.1.68  
changed lines
  Added in v.1.69

CVSweb