summary refs log tree commit diff
path: root/server.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-07-18 12:55:23 -0400
committerJune McEnroe <june@causal.agency>2020-07-18 12:55:23 -0400
commit56af4115c72d0ee03d7492390156211b2d18ffcb (patch)
tree0b12e22e06e9b11332b84f904d48bfe44fadabb1 /server.c
parentRemove kcgi 0.11 compatibility (diff)
downloadscooper-56af4115c72d0ee03d7492390156211b2d18ffcb.tar.gz
scooper-56af4115c72d0ee03d7492390156211b2d18ffcb.zip
Reverse order of X macro parameters for pages and keys
Diffstat (limited to '')
-rw-r--r--server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/server.c b/server.c
index 8aea1e5..48b760c 100644
--- a/server.c
+++ b/server.c
@@ -40,13 +40,13 @@ static void finalizeAll(void) {
 }
 
 const char *Pages[PagesLen] = {
-#define X(page, path) [page] = path,
+#define X(path, page) [page] = path,
 	ENUM_PAGES
 #undef X
 };
 
 const struct kvalid Keys[KeysLen] = {
-#define X(key, name, valid) [key] = { valid, name },
+#define X(valid, name, key) [key] = { valid, name },
 	ENUM_KEYS
 #undef X
 };