summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2013-01-21 17:19:50 -0500
committerTheodore Ts'o <tytso@mit.edu>2013-01-21 17:19:50 -0500
commitc64929d9c36b971567e2fc45458cc7157d860e7a (patch)
treeea3ca1ad4e5df290e3c136460d6ab5c499cc393c /contrib
parent0b64f50f71ff94ab4c300caf92623792d3e8a2b3 (diff)
downloade2fsprogs-c64929d9c36b971567e2fc45458cc7157d860e7a.tar.gz
contrib: fix namespace leakage in spd_readdir
Declare the internal symbols alloc_dirstruct() and cache_dirstruct() as static so they don't leak out into the global namespace. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/spd_readdir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/spd_readdir.c b/contrib/spd_readdir.c
index 910b1042..8345fa1a 100644
--- a/contrib/spd_readdir.c
+++ b/contrib/spd_readdir.c
@@ -186,7 +186,7 @@ static int ino_cmp(const void *a, const void *b)
return (i_a - i_b);
}
-struct dir_s *alloc_dirstruct(DIR *dir)
+static struct dir_s *alloc_dirstruct(DIR *dir)
{
struct dir_s *dirstruct;
static pthread_mutexattr_t mutexattr;
@@ -200,7 +200,7 @@ struct dir_s *alloc_dirstruct(DIR *dir)
return dirstruct;
}
-void cache_dirstruct(struct dir_s *dirstruct)
+static void cache_dirstruct(struct dir_s *dirstruct)
{
struct dirent_s *ds, *dnew;
struct dirent64 *d;