diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2015-09-15 23:03:08 +0300 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-09-21 17:05:58 -0400 |
commit | 0cf2ebc941e22713094ba50bf05b60ce22d9382a (patch) | |
tree | d5597d15e96879cdb64a25e6a96a670908da163b | |
parent | dce9b4448c7f2b22bd206cd068fb05cb2f3255b9 (diff) | |
download | attr-0cf2ebc941e22713094ba50bf05b60ce22d9382a.tar.gz |
walk_tree: mark internal variables as static
walk_tree.c internal variables should not be exposed to libmisc users.
-rw-r--r-- | libmisc/walk_tree.c | 6 |
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) { |