acl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Acl-devel] [PATCH] walk_tree: mark internal variables as static


From: Dmitry V. Levin
Subject: [Acl-devel] [PATCH] walk_tree: mark internal variables as static
Date: Tue, 15 Sep 2015 23:03:08 +0300

walk_tree.c internal variables should not be exposed to libmisc users.
---
 libmisc/walk_tree.c | 6 +++---
 1 file 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)
 {

-- 
ldv



reply via email to

[Prev in Thread] Current Thread [Next in Thread]