diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-07-28 14:48:25 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-07-28 14:48:25 +0000 |
commit | a81bac022854127de7708644724ce9f93d4513f7 (patch) | |
tree | 61333769523482f7f3be3eae8eb233eba39d3297 | |
parent | 2e493faeaab58de8effeb7c8bfb2d1e721f25d56 (diff) | |
download | mandoc-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)); |