From 4a5140636e487aeb1a8a43dbecae3ab395d31392 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Tue, 15 Sep 2015 23:03:08 +0300 Subject: walk_tree: mark internal variables as static 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) { -- cgit v1.2.1