From 6de38c89acd25c52d40843ece597c1be912f5fbc Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Fri, 7 May 2021 19:42:54 -0400 Subject: Add missing static declarations in html.c --- html.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/html.c b/html.c index 321d731..21dca9f 100644 --- a/html.c +++ b/html.c @@ -155,7 +155,8 @@ enum kcgi_err htmlNav(struct khtmlreq *html, struct kreq *req) { || khtml_closeelem(html, 3); } -enum kcgi_err linkify(struct khtmlreq *html, const char *str, size_t len) { +static enum kcgi_err +linkify(struct khtmlreq *html, const char *str, size_t len) { static const char *Pattern = "https?://([^[:space:]>\"()]|[(][^)]*[)])+"; static regex_t regex; if (!regex.re_nsub) { @@ -190,7 +191,7 @@ static const struct Style { bool b, r, i, u; } Default = { .fg = 99, .bg = 99 }; -enum kcgi_err htmlStyle(struct khtmlreq *html, struct Style style) { +static enum kcgi_err htmlStyle(struct khtmlreq *html, struct Style style) { enum kcgi_err error = KCGI_OK; char class[sizeof("fg99")]; if (style.fg != Default.fg) { -- cgit 1.4.1