From e691ea8079e5036d8f6379df2ab72e5f64e05874 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Mon, 8 Dec 2008 12:46:28 +0000 Subject: Added warnings for using macros in the wrong sections. --- html.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'html.c') diff --git a/html.c b/html.c index a62c7fb4..8c022e18 100644 --- a/html.c +++ b/html.c @@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.14 2008/12/07 21:30:49 kristaps Exp $ */ +/* $Id: html.c,v 1.15 2008/12/08 12:46:28 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -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); -- cgit v1.2.3-56-ge451