From fd1d8a6031eb128bf1d663983f42bce883e1c0f3 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Thu, 15 Mar 2012 16:36:48 -0400 Subject: [PATCH] Make private helper function static in fs_darwin.cpp in order to not pollute the public namespace. --- src/build/libroot/fs_darwin.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/build/libroot/fs_darwin.cpp b/src/build/libroot/fs_darwin.cpp index c8b9e7f15c..89eb24471b 100644 --- a/src/build/libroot/fs_darwin.cpp +++ b/src/build/libroot/fs_darwin.cpp @@ -19,11 +19,12 @@ #include -int get_path(int fd, const char* path, char fullPath[]); -int eaccess(const char* path, int accessMode); +// Private helper functions +static int get_path(int fd, const char* path, char fullPath[]); +static int eaccess(const char* path, int accessMode); -int +static int get_path(int fd, const char* path, char fullPath[]) { struct stat dirst; @@ -54,7 +55,7 @@ get_path(int fd, const char* path, char fullPath[]) } -int +static int eaccess(const char* path, int accessMode) { uid_t uid = geteuid();