summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/mdoc_macro.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2009-07-12 19:05:52 +0000
committerschwarze <schwarze@openbsd.org>2009-07-12 19:05:52 +0000
commit5651972780094022a92f39cb7f72913c58f41225 (patch)
tree48f4ce122e2e14c22698013cf46d3be52877de76 /usr.bin/mandoc/mdoc_macro.c
parentfwrite() should also return 0 if either size or nmemb are 0. (diff)
downloadwireguard-openbsd-5651972780094022a92f39cb7f72913c58f41225.tar.xz
wireguard-openbsd-5651972780094022a92f39cb7f72913c58f41225.zip
sync to 1.7.23: third step to get rid of enum mdoc_warn:
mdoc_verr is not using enum mdoc_warn, so use it at a few more places
Diffstat (limited to 'usr.bin/mandoc/mdoc_macro.c')
-rw-r--r--usr.bin/mandoc/mdoc_macro.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mdoc_macro.c b/usr.bin/mandoc/mdoc_macro.c
index e4ed8315ace..4b657f1dddd 100644
--- a/usr.bin/mandoc/mdoc_macro.c
+++ b/usr.bin/mandoc/mdoc_macro.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_macro.c,v 1.5 2009/07/12 18:35:57 schwarze Exp $ */
+/* $Id: mdoc_macro.c,v 1.6 2009/07/12 19:05:52 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -283,7 +283,7 @@ swarn(struct mdoc *mdoc, enum mdoc_type type,
}
if ( ! (MDOC_IGN_SCOPE & mdoc->pflags))
- return(mdoc_perr(mdoc, line, pos,
+ return(mdoc_verr(mdoc, line, pos,
"%s scope breaks %s scope of %s",
tt, t, n));
return(mdoc_vwarn(mdoc, line, pos,