summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-05-07 19:42:54 -0400
committerJune McEnroe <june@causal.agency>2021-05-07 19:42:54 -0400
commit6de38c89acd25c52d40843ece597c1be912f5fbc (patch)
treeb76f1bc4709b7a3a1f9d2d4bbc9b5da00a49e2c0
parentReverse order of search results (diff)
downloadscooper-6de38c89acd25c52d40843ece597c1be912f5fbc.tar.gz
scooper-6de38c89acd25c52d40843ece597c1be912f5fbc.zip
Add missing static declarations in html.c
-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) {