aboutsummaryrefslogtreecommitdiffstatshomepage
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
commita81bac022854127de7708644724ce9f93d4513f7 (patch)
tree61333769523482f7f3be3eae8eb233eba39d3297
parent2e493faeaab58de8effeb7c8bfb2d1e721f25d56 (diff)
downloadmandoc-a81bac022854127de7708644724ce9f93d4513f7.tar.gz
mandoc-a81bac022854127de7708644724ce9f93d4513f7.tar.zst
mandoc-a81bac022854127de7708644724ce9f93d4513f7.zip
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.
-rw-r--r--mandocdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mandocdb.c b/mandocdb.c
index 434b2749..26117cf8 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -1,4 +1,4 @@
-/* $Id: mandocdb.c,v 1.252 2017/07/15 13:17:49 schwarze Exp $ */
+/* $Id: mandocdb.c,v 1.253 2017/07/28 14:48:25 schwarze Exp $ */
/*
* Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011-2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -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));