From e01a5f87599da8a5f2630d0dccb546bb429575f1 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 28 Jul 2017 14:48:25 +0000 Subject: 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. --- mandocdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mandocdb.c') 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)); -- cgit