summaryrefslogtreecommitdiff
path: root/libmisc
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2015-09-15 23:03:08 +0300
committerMike Frysinger <vapier@gentoo.org>2015-09-19 03:09:08 -0400
commit4a5140636e487aeb1a8a43dbecae3ab395d31392 (patch)
tree6536abdbf0b532deaae06646189c75bdc6e5a9bb /libmisc
parentfc027ffa5eefe6d563328059348a8929c4789c17 (diff)
downloadacl-4a5140636e487aeb1a8a43dbecae3ab395d31392.tar.gz
walk_tree: mark internal variables as static
walk_tree.c internal variables should not be exposed to libmisc users.
Diffstat (limited to 'libmisc')
-rw-r--r--libmisc/walk_tree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmisc/walk_tree.c b/libmisc/walk_tree.c
index a93a662..d753dc7 100644
--- a/libmisc/walk_tree.c
+++ b/libmisc/walk_tree.c
@@ -37,13 +37,13 @@ struct entry_handle {
long pos;
};
-struct entry_handle head = {
+static struct entry_handle head = {
.next = &head,
.prev = &head,
/* The other fields are unused. */
};
-struct entry_handle *closed = &head;
-unsigned int num_dir_handles;
+static struct entry_handle *closed = &head;
+static unsigned int num_dir_handles;
static int walk_tree_visited(dev_t dev, ino_t ino)
{