diff options
author | June McEnroe <june@causal.agency> | 2021-04-27 18:33:16 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-04-27 18:33:34 -0400 |
commit | a3c38707020b44384c518ce364033a890233b8ee (patch) | |
tree | edc62b214f24903248aa2f549ecdea9b0df809db | |
parent | Add missing comma in manual (diff) | |
download | litterbox-a3c38707020b44384c518ce364033a890233b8ee.tar.gz litterbox-a3c38707020b44384c518ce364033a890233b8ee.zip |
Use QueryCap for select
No idea why it was like this.
Diffstat (limited to '')
-rw-r--r-- | scoop.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scoop.c b/scoop.c index 8c113d5..95fb794 100644 --- a/scoop.c +++ b/scoop.c @@ -283,7 +283,9 @@ static void regexp(sqlite3_context *ctx, int n, sqlite3_value *args[]) { sqlite3_result_int(ctx, !error); } -static char select[4096] = SQL( +enum { QueryCap = 4096 }; + +static char select[QueryCap] = SQL( SELECT events.event, contexts.network, @@ -306,8 +308,6 @@ static char select[4096] = SQL( events.target, ); -enum { QueryCap = 4096 }; - static char from[QueryCap] = SQL( FROM events JOIN contexts USING (context) |