summary refs log tree commit diff
path: root/html.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-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) {
2018-11-10Remove trailing whitespaceJune McEnroe 2018-11-10Add deflateInit2.3June McEnroe 2018-11-10Refer to deflate(3) for z_streamp typeJune McEnroe 2018-11-10Document z_stream fields in deflate.3June McEnroe 2018-11-10Add inflate.3June McEnroe 2018-11-09Use Pq/Po/Pc moreJune McEnroe 2018-11-09Add FreeBSD MakefileJune McEnroe 2018-11-09Add deflate.3June McEnroe