about summary refs log tree commit diff
path: root/networks.c
diff options
context:
space:
mode:
Diffstat (limited to 'networks.c')
-rw-r--r--networks.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/networks.c b/networks.c
index 289fa31..f860efc 100644
--- a/networks.c
+++ b/networks.c
@@ -15,6 +15,7 @@
  */
 
 #include <err.h>
+#include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <sysexits.h>
@@ -43,7 +44,7 @@ const char *NetworksQuery = SQL(
 	SELECT network, 0 FROM allNetworks;
 );
 
-enum kcgi_err pageNetworks(struct kreq *req) {
+enum kcgi_err networksPage(struct kreq *req) {
 	struct Scope scope = {0};
 
 	enum kcgi_err error = httpHead(req, KHTTP_200, KMIME_TEXT_HTML);
@@ -58,7 +59,7 @@ enum kcgi_err pageNetworks(struct kreq *req) {
 	if (error) return error;
 
 	sqlite3_reset(stmt.networks);
-	dbBindInt(stmt.networks, ":recent", pageRecent);
+	dbBindInt(stmt.networks, ":recent", contextsRecent);
 
 	enum State {
 		None,