-/* $Id: cgi.c,v 1.46 2013/10/11 00:06:48 schwarze Exp $ */
+/* $Id: cgi.c,v 1.50 2014/03/23 12:19:03 schwarze Exp $ */
/*
* Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
*
#include "apropos_db.h"
#include "mandoc.h"
+#include "mandoc_aux.h"
#include "mdoc.h"
#include "man.h"
#include "main.h"
return;
}
- mp = mparse_alloc(MPARSE_AUTO, MANDOCLEVEL_FATAL, NULL, NULL, NULL);
+ mp = mparse_alloc(MPARSE_SO, MANDOCLEVEL_FATAL, NULL, NULL);
rc = mparse_readfd(mp, fd, file);
close(fd);
/*"includes=/cgi-bin/man.cgi/usr/include/%%I"*/,
progname);
- mparse_result(mp, &mdoc, &man);
+ mparse_result(mp, &mdoc, &man, NULL);
if (NULL == man && NULL == mdoc) {
resp_baddb();
mparse_free(mp);