summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2013-03-23 08:03:56 -0400
committerSteve Dickson <steved@redhat.com>2013-03-25 10:09:09 -0400
commitbbee50bbebc245d4e1d496d046ff0ae04217612d (patch)
tree2a8ebe93ef25dd20676f54354479b766aea9b725
parent2b445aa10fde7e84681f98a61e806e0c10da8be2 (diff)
downloadnfs-utils-bbee50bbebc245d4e1d496d046ff0ae04217612d.zip
nfs-utils-bbee50bbebc245d4e1d496d046ff0ae04217612d.tar.gz
nfs-utils-bbee50bbebc245d4e1d496d046ff0ae04217612d.tar.xz
mountd: make local functions in v4root.c static
Clean up. set_pseudofs_security() and pseudofs_update() have no call sites outside of v4root.c, and there are no header declarations for either function. Define both as static. Acked-by: J. Bruce Fields <bfields@fieldses.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--utils/mountd/v4root.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/mountd/v4root.c b/utils/mountd/v4root.c
index 726b50d..34d098a 100644
--- a/utils/mountd/v4root.c
+++ b/utils/mountd/v4root.c
@@ -55,7 +55,8 @@ static nfs_export pseudo_root = {
.m_warned = 0,
};
-void set_pseudofs_security(struct exportent *pseudo, struct exportent *source)
+static void
+set_pseudofs_security(struct exportent *pseudo, struct exportent *source)
{
struct sec_entry *se;
int i;
@@ -121,7 +122,8 @@ v4root_support(void)
return 0;
}
-int pseudofs_update(char *hostname, char *path, nfs_export *source)
+static int
+pseudofs_update(char *hostname, char *path, nfs_export *source)
{
nfs_export *exp;