From c285fbf9081bc68f133e930b3028f4e4be16ce93 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 19 Mar 2014 22:09:29 +0000 Subject: cope with mparse_alloc() interface change --- mandocdb.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mandocdb.c b/mandocdb.c index eeb9696d..af4e5884 100644 --- a/mandocdb.c +++ b/mandocdb.c @@ -1,4 +1,4 @@ -/* $Id: mandocdb.c,v 1.49.2.11 2014/01/05 21:30:57 schwarze Exp $ */ +/* $Id: mandocdb.c,v 1.49.2.12 2014/03/19 22:09:29 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons * Copyright (c) 2011, 2012 Ingo Schwarze @@ -288,7 +288,7 @@ static const struct mdoc_handler mdocs[MDOC_MAX] = { }; static const char *progname; -static int quick; /* abort the parse early */ +static int mparse_options; /* abort the parse early */ static int use_all; /* Use all directories and files. */ static int verb; /* Output verbosity level. */ static int warnings; /* Potential problems in manuals. */ @@ -329,6 +329,7 @@ main(int argc, char *argv[]) hash = NULL; op = OP_DEFAULT; dir = NULL; + mparse_options = MPARSE_SO; while (-1 != (ch = getopt(argc, argv, "aC:d:Qtu:vW"))) switch (ch) { @@ -354,7 +355,7 @@ main(int argc, char *argv[]) op = OP_UPDATE; break; case ('Q'): - quick = 1; + mparse_options |= MPARSE_QUICK; break; case ('t'): dup2(STDOUT_FILENO, STDERR_FILENO); @@ -398,8 +399,7 @@ main(int argc, char *argv[]) info.lorder = 4321; info.flags = R_DUP; - mp = mparse_alloc(MPARSE_AUTO, - MANDOCLEVEL_FATAL, NULL, NULL, quick); + mp = mparse_alloc(mparse_options, MANDOCLEVEL_FATAL, NULL, NULL); memset(&buf, 0, sizeof(struct buf)); memset(&dbuf, 0, sizeof(struct buf)); -- cgit v1.2.3-56-ge451