about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--html.c5
1 files 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) {