From 9b1c5610e00ea2de74086f5e86760238b5ad943c Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 2 Jun 2021 22:11:34 +0200 Subject: [PATCH] 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. --- src/test/test-exec-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.47.3