diff options
author | June McEnroe <june@causal.agency> | 2020-07-18 12:55:23 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-07-18 12:55:23 -0400 |
commit | 56af4115c72d0ee03d7492390156211b2d18ffcb (patch) | |
tree | 0b12e22e06e9b11332b84f904d48bfe44fadabb1 /server.c | |
parent | Remove kcgi 0.11 compatibility (diff) | |
download | scooper-56af4115c72d0ee03d7492390156211b2d18ffcb.tar.gz scooper-56af4115c72d0ee03d7492390156211b2d18ffcb.zip |
Reverse order of X macro parameters for pages and keys
Diffstat (limited to 'server.c')
-rw-r--r-- | server.c | 4 |
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 }; |