]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: add a 'static' on a global variable we don't actually export 19800/head
authorLennart Poettering <lennart@poettering.net>
Wed, 2 Jun 2021 20:11:34 +0000 (22:11 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 3 Jun 2021 09:30:56 +0000 (11:30 +0200)
All global but not exported variables should be "static" in our
codebase, add "static" to one more such variable hence.

src/test/test-exec-util.c

index e9e8e21040527e903b427438f23eb7cb5bb67c9e..4c11f54cef5e8ca714716b37d07889e964179b04 100644 (file)
@@ -22,7 +22,7 @@
 #include "tests.h"
 
 static int here = 0, here2 = 0, here3 = 0;
-void *ignore_stdout_args[] = {&here, &here2, &here3};
+static void *ignore_stdout_args[] = { &here, &here2, &here3 };
 
 /* noop handlers, just check that arguments are passed correctly */
 static int ignore_stdout_func(int fd, void *arg) {