]> git.cameronkatri.com Git - mandoc.git/commitdiff
`An' gives correct error message in encountering arguments/parameters.
authorKristaps Dzonsons <kristaps@bsd.lv>
Fri, 24 Jul 2009 12:09:37 +0000 (12:09 +0000)
committerKristaps Dzonsons <kristaps@bsd.lv>
Fri, 24 Jul 2009 12:09:37 +0000 (12:09 +0000)
mdoc_validate.c

index 797642aaf7aec3194435aa39c171baf7c04b3ce7..9d0435265fb8e762b35499fec187c97805527de5 100644 (file)
@@ -1,4 +1,4 @@
-/*     $Id: mdoc_validate.c,v 1.39 2009/07/23 08:36:32 kristaps Exp $ */
+/*     $Id: mdoc_validate.c,v 1.40 2009/07/24 12:09:37 kristaps Exp $ */
 /*
  * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
  *
@@ -912,7 +912,7 @@ post_an(POST_ARGS)
        if (mdoc->last->args) {
                if (NULL == mdoc->last->child)
                        return(1);
-               return(mdoc_nerr(mdoc, mdoc->last, ELINE));
+               return(mdoc_nerr(mdoc, mdoc->last, ENOLINE));
        }
 
        if (mdoc->last->child)