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

Diff for /src/usr.bin/mandoc/mdoc_validate.c between version 1.168 and 1.169

version 1.168, 2014/10/11 21:33:58 version 1.169, 2014/10/13 14:01:03
Line 1003 
Line 1003 
 static int  static int
 post_fname(POST_ARGS)  post_fname(POST_ARGS)
 {  {
         const struct mdoc_node *n;          const struct mdoc_node  *n;
         size_t pos;          const char              *cp;
           size_t                   pos;
   
         n = mdoc->last->child;          n = mdoc->last->child;
         pos = strcspn(n->string, "()");          pos = strcspn(n->string, "()");
         if (n->string[pos] != '\0')          cp = n->string + pos;
           if ( ! (cp[0] == '\0' || (cp[0] == '(' && cp[1] == '*')))
                 mandoc_msg(MANDOCERR_FN_PAREN, mdoc->parse,                  mandoc_msg(MANDOCERR_FN_PAREN, mdoc->parse,
                     n->line, n->pos + pos, n->string);                      n->line, n->pos + pos, n->string);
         return(1);          return(1);

Legend:
Removed from v.1.168  
changed lines
  Added in v.1.169