summaryrefslogtreecommitdiffstats
path: root/dba.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2016-08-17 20:46:56 +0000
committerIngo Schwarze <schwarze@openbsd.org>2016-08-17 20:46:56 +0000
commit82084a7d25acdbc823a8a52ae0e4b9fb266553f0 (patch)
treef449f366e7398e16fef98c86e353a1b16dec9b67 /dba.h
parenteccbe40515e1ca229e250d389f02e0395c281098 (diff)
downloadmandoc-82084a7d25acdbc823a8a52ae0e4b9fb266553f0.tar.gz
When the content of a manual page does not specify a section, the
empty string got added to the list of sections, breaking the database format slightly and causing the page to not be considered part of any section, not even if a section could be deduced from the directory or from the file name. Bug found due to the bogus pcredemo(3) "manual" in the pcre-8.38p0 package.
Diffstat (limited to 'dba.h')
-rw-r--r--dba.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/dba.h b/dba.h
index 885c987a..369f258f 100644
--- a/dba.h
+++ b/dba.h
@@ -40,8 +40,7 @@ struct dba *dba_read(const char *);
int dba_write(const char *, struct dba *);
struct dba_array *dba_page_new(struct dba_array *, const char *,
- const char *, const char *, const char *,
- const char *, enum form);
+ const char *, const char *, enum form);
void dba_page_add(struct dba_array *, int32_t, const char *);
void dba_page_alias(struct dba_array *, const char *, uint64_t);