mount: make mountIsDir static
authorRobert Swiecki <robert@swiecki.net>
Sun, 8 Oct 2017 13:17:57 +0000 (15:17 +0200)
committerRobert Swiecki <robert@swiecki.net>
Sun, 8 Oct 2017 13:17:57 +0000 (15:17 +0200)
mount.c
mount.h

diff --git a/mount.c b/mount.c
index b134d79..27fa415 100644 (file)
--- a/mount.c
+++ b/mount.c
@@ -101,7 +101,7 @@ const char *mountFlagsToStr(uintptr_t flags)
        return mountFlagsStr;
 }
 
-bool mountIsDir(const char *path)
+static bool mountIsDir(const char *path)
 {
        /*
         *  If the source dir is NULL, we assume it's a dir (for /proc and tmpfs)
diff --git a/mount.h b/mount.h
index 03fbf75..4c8e911 100644 (file)
--- a/mount.h
+++ b/mount.h
@@ -33,7 +33,6 @@ typedef enum {
 } isDir_t;
 
 const char *mountFlagsToStr(uintptr_t flags);
-bool mountIsDir(const char *path);
 bool mountInitNs(struct nsjconf_t *nsjconf);
 bool mountAddMountPtHead(struct nsjconf_t *nsjconf, const char *src, const char *dst,
                         const char *fstype, const char *options, uintptr_t flags, isDir_t isDir,