From: Lennart Poettering Date: Wed, 2 Jun 2021 20:11:34 +0000 (+0200) Subject: test: add a 'static' on a global variable we don't actually export X-Git-Tag: v249-rc1~106^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F19800%2Fhead;p=thirdparty%2Fsystemd.git test: add a 'static' on a global variable we don't actually export All global but not exported variables should be "static" in our codebase, add "static" to one more such variable hence. --- diff --git a/src/test/test-exec-util.c b/src/test/test-exec-util.c index e9e8e210405..4c11f54cef5 100644 --- a/src/test/test-exec-util.c +++ b/src/test/test-exec-util.c @@ -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) {