From 6500baa1ffc720ec4c0f256dd99dab478225122b Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Thu, 16 Jul 2020 17:46:19 -0400 Subject: Big refactor, remove struct Scope --- networks.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'networks.c') diff --git a/networks.c b/networks.c index c92da21..af3ad80 100644 --- a/networks.c +++ b/networks.c @@ -45,8 +45,6 @@ const char *NetworksQuery = SQL( ); enum kcgi_err networksPage(struct kreq *req) { - struct Scope scope = {0}; - enum kcgi_err error = 0 || httpHead(req, KHTTP_200, KMIME_TEXT_HTML) || khttp_body(req); @@ -56,7 +54,7 @@ enum kcgi_err networksPage(struct kreq *req) { error = error || khtml_open(&html, req, 0) || htmlHead(&html, "Litterbox") - || htmlNav(&html, scope); + || htmlNav(&html, req); if (error) return error; sqlite3_reset(stmt.networks); -- cgit 1.4.1