summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Brauer <louis@openbooking.ch>2024-05-27 23:55:51 +0200
committerLouis Brauer <louis@openbooking.ch>2024-05-27 23:55:51 +0200
commit25ef07b1ec7576becc02bcfc07706184797fea91 (patch)
tree3632cfd87dee1e982bcfe12672122c4351b00b3a
parent8fc788e92c83bb7c09c5d267affcb91ef828b0d6 (diff)
More or less smaller fixes :)
-rw-r--r--Makefile2
-rw-r--r--http_codes.h2
-rw-r--r--mastoapi.c1
-rw-r--r--xs_set.h2
4 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 1edf99e..5a59d6b 100644
--- a/Makefile
+++ b/Makefile
@@ -52,7 +52,7 @@ mastoapi.o: mastoapi.c xs.h xs_hex.h xs_openssl.h xs_json.h xs_io.h \
snac.o: snac.c xs.h xs_hex.h xs_io.h xs_unicode.h xs_json.h xs_curl.h \
xs_openssl.h xs_socket.h xs_url.h xs_httpd.h xs_mime.h xs_regex.h \
xs_set.h xs_time.h xs_glob.h xs_random.h xs_match.h xs_fcgi.h xs_html.h \
- snac.h
+ snac.h http_codes.h
upgrade.o: upgrade.c xs.h xs_io.h xs_json.h xs_glob.h snac.h
utils.o: utils.c xs.h xs_io.h xs_json.h xs_time.h xs_openssl.h \
xs_random.h xs_glob.h xs_curl.h xs_regex.h snac.h
diff --git a/http_codes.h b/http_codes.h
index 795f92a..a1958f1 100644
--- a/http_codes.h
+++ b/http_codes.h
@@ -42,4 +42,4 @@ HTTP_STATUS(502, BAD_GATEWAY, Bad Gateway)
HTTP_STATUS(503, SERVICE_UNAVAILABLE, Service Unavailable)
HTTP_STATUS(504, GATEWAY_TIMEOUT, Gateway Timeout)
HTTP_STATUS(505, HTTP_VERSION_NOT_SUPPORTED, HTTP Version Not Supported)
-HTTP_STATUS(507, INSUFFICIENT_STORAGE, Insufficient Storage) \ No newline at end of file
+HTTP_STATUS(507, INSUFFICIENT_STORAGE, Insufficient Storage)
diff --git a/mastoapi.c b/mastoapi.c
index 32f6bae..0adba08 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -1466,6 +1466,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
/* we don't serve statuses of others; return the empty list */
out = xs_list_new();
}
+ else
if (strcmp(opt, "featured_tags") == 0) {
/* snac doesn't have features tags, yet? */
/* implement empty response so apps like Tokodon don't show an error */
diff --git a/xs_set.h b/xs_set.h
index d320d34..6ab7f0b 100644
--- a/xs_set.h
+++ b/xs_set.h
@@ -111,4 +111,4 @@ int xs_set_add(xs_set *s, const xs_val *data)
#endif /* XS_IMPLEMENTATION */
-#endif /* XS_SET_H */ \ No newline at end of file
+#endif /* XS_SET_H */