summaryrefslogtreecommitdiffstats
path: root/libmount/src/context.c
diff options
context:
space:
mode:
authorSami Kerola2017-03-10 20:56:16 +0100
committerSami Kerola2017-03-17 22:22:26 +0100
commit41427f97d91ab1e533713105034fa7fe57731163 (patch)
tree14aeea2f75b3a3213472d7203086260a44ee23e0 /libmount/src/context.c
parenttests: do not use plain 0 as NULL [smatch scan] (diff)
downloadkernel-qcow2-util-linux-41427f97d91ab1e533713105034fa7fe57731163.tar.gz
kernel-qcow2-util-linux-41427f97d91ab1e533713105034fa7fe57731163.tar.xz
kernel-qcow2-util-linux-41427f97d91ab1e533713105034fa7fe57731163.zip
tests: add static keyword where needed [smatch scan]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'libmount/src/context.c')
-rw-r--r--libmount/src/context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmount/src/context.c b/libmount/src/context.c
index 44282c07b..e731749b4 100644
--- a/libmount/src/context.c
+++ b/libmount/src/context.c
@@ -2414,7 +2414,7 @@ int mnt_context_wait_for_children(struct libmnt_context *cxt,
#ifdef TEST_PROGRAM
-struct libmnt_lock *lock;
+static struct libmnt_lock *lock;
static void lock_fallback(void)
{