about summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--scoop.c6
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)