summaryrefslogtreecommitdiffstats
path: root/html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-12-08 12:46:28 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-12-08 12:46:28 +0000
commit590484168e25f0faf46db9b6df44c27b50ffeb50 (patch)
tree2710f24f8b76175801d4fb7b79499f2425c13e0d /html.c
parent1dc52a2bad8738c62ac5bc9689c09600eb7b1269 (diff)
downloadmandoc-590484168e25f0faf46db9b6df44c27b50ffeb50.tar.gz
Added warnings for using macros in the wrong sections.
Diffstat (limited to 'html.c')
-rw-r--r--html.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/html.c b/html.c
index afba9b24..929b2625 100644
--- a/html.c
+++ b/html.c
@@ -75,7 +75,7 @@ static int html_begin(struct md_mbuf *,
const struct md_args *,
const struct tm *,
const char *, const char *,
- const char *, const char *);
+ enum roffmsec, const char *);
static int html_printargs(struct md_mbuf *, int,
const char *, const int *,
const char **, size_t *);
@@ -361,7 +361,7 @@ out:
static int
html_begin(struct md_mbuf *mbuf, const struct md_args *args,
const struct tm *tm, const char *os,
- const char *title, const char *section,
+ const char *title, enum roffmsec section,
const char *vol)
{
const char *preamble, *css, *trail;
@@ -389,7 +389,7 @@ html_begin(struct md_mbuf *mbuf, const struct md_args *args,
res = 0;
(void)snprintf(buf, sizeof(buf) - 1,
- preamble, title, section);
+ preamble, title, ml_section(section));
if ( ! ml_puts(mbuf, buf, &res))
return(0);