summary refs log tree commit diff
path: root/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'server.c')
-rw-r--r--server.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/server.c b/server.c
index de18e7d..3dcdea3 100644
--- a/server.c
+++ b/server.c
@@ -46,6 +46,7 @@ const struct kvalid Keys[KeysLen] = {
 };
 
 bool pagePublic;
+int pageLimit = 100;
 
 static enum kcgi_err request(struct kreq *req) {
 	if (req->method != KMETHOD_HEAD && req->method != KMETHOD_GET) {
@@ -94,6 +95,8 @@ int main(int argc, char *argv[]) {
 
 	prepare(&stmt.networks, NetworksQuery);
 	prepare(&stmt.contexts, ContextsQuery);
+	prepare(&stmt.eventsAfter, EventsAfterQuery);
+	prepare(&stmt.eventsBefore, EventsBeforeQuery);
 	
 	if (fastCGI) {
 		struct kfcgi *fcgi;