Make private helper function static in fs_darwin.cpp in order to not pollute
the public namespace.
This commit is contained in:
@@ -19,11 +19,12 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
|
||||||
int get_path(int fd, const char* path, char fullPath[]);
|
// Private helper functions
|
||||||
int eaccess(const char* path, int accessMode);
|
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[])
|
get_path(int fd, const char* path, char fullPath[])
|
||||||
{
|
{
|
||||||
struct stat dirst;
|
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)
|
eaccess(const char* path, int accessMode)
|
||||||
{
|
{
|
||||||
uid_t uid = geteuid();
|
uid_t uid = geteuid();
|
||||||
|
|||||||
Reference in New Issue
Block a user