=================================================================== RCS file: /cvs/mandoc/man_validate.c,v retrieving revision 1.65 retrieving revision 1.67 diff -u -p -r1.65 -r1.67 --- mandoc/man_validate.c 2011/03/20 16:02:05 1.65 +++ mandoc/man_validate.c 2011/03/22 15:30:30 1.67 @@ -1,4 +1,4 @@ -/* $Id: man_validate.c,v 1.65 2011/03/20 16:02:05 kristaps Exp $ */ +/* $Id: man_validate.c,v 1.67 2011/03/22 15:30:30 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010 Ingo Schwarze @@ -30,6 +30,7 @@ #include #include +#include "man.h" #include "mandoc.h" #include "libman.h" #include "libmandoc.h" @@ -322,7 +323,8 @@ check_sec(CHKARGS) man_nmsg(m, n, MANDOCERR_SYNTARGCOUNT); return(0); } else if (MAN_BODY == n->type && 0 == n->nchild) - man_nmsg(m, n, MANDOCERR_NOBODY); + mandoc_msg(MANDOCERR_ARGCWARN, m->parse, n->line, + n->pos, "want children (have none)"); return(1); } @@ -333,7 +335,8 @@ check_part(CHKARGS) { if (MAN_BODY == n->type && 0 == n->nchild) - man_nmsg(m, n, MANDOCERR_NOBODY); + mandoc_msg(MANDOCERR_ARGCWARN, m->parse, n->line, + n->pos, "want children (have none)"); return(1); }