summaryrefslogtreecommitdiffstats
path: root/mandocdb.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-07-28 14:48:25 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-07-28 14:48:25 +0000
commite01a5f87599da8a5f2630d0dccb546bb429575f1 (patch)
treecf47586cdc2d5025e0ff36fcb83d1c6ce2a52ffb /mandocdb.c
parent240a95dd38912a856ad5caf04ea0d485680a3b53 (diff)
downloadmandoc-e01a5f87599da8a5f2630d0dccb546bb429575f1.tar.gz
When the mparse_alloc() prototype changed in read.c 1.179, updating
the enum constant was forgotten in this call. No functional change since the mmsg argument is NULL anyway. Found by florian@ with clang.
Diffstat (limited to 'mandocdb.c')
-rw-r--r--mandocdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mandocdb.c b/mandocdb.c
index 327f70e3..138e5282 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -420,7 +420,7 @@ mandocdb(int argc, char *argv[])
exitcode = (int)MANDOCLEVEL_OK;
mchars_alloc();
- mp = mparse_alloc(mparse_options, MANDOCLEVEL_BADARG, NULL,
+ mp = mparse_alloc(mparse_options, MANDOCERR_MAX, NULL,
MANDOC_OS_OTHER, NULL);
mandoc_ohash_init(&mpages, 6, offsetof(struct mpage, inodev));
mandoc_ohash_init(&mlinks, 6, offsetof(struct mlink, file));