projects
/
platform
/
upstream
/
nsjail.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23a77f4
)
mount: make mountIsDir static
author
Robert Swiecki
<robert@swiecki.net>
Sun, 8 Oct 2017 13:17:57 +0000
(15:17 +0200)
committer
Robert Swiecki
<robert@swiecki.net>
Sun, 8 Oct 2017 13:17:57 +0000
(15:17 +0200)
mount.c
patch
|
blob
|
history
mount.h
patch
|
blob
|
history
diff --git
a/mount.c
b/mount.c
index b134d7985ed4b9e560536e8cc6e5a5149dee6cb6..27fa41587351ab390147b9f261a27c8c8a827c70 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 03fbf75166d1b103c0a6f37ce702cc78653e612c..4c8e9112f17b6269307320d0fd660673da50d936 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,