From a81bac022854127de7708644724ce9f93d4513f7 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 | 4 ++-- 1 file 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 * Copyright (c) 2011-2017 Ingo Schwarze @@ -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 v1.2.3-56-ge451