summaryrefslogtreecommitdiffstats
path: root/utils/mount/network.c
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2009-11-03 10:37:36 -0500
committerSteve Dickson <steved@redhat.com>2009-11-03 10:37:36 -0500
commit57af0cce3ed6f555bb40132d667e8b10d41855ca (patch)
treef0109dab48fece1ee86a782d6ae42b1a248e9ea0 /utils/mount/network.c
parente1eccc5fc317f73801522b3b498c6dab67b048d2 (diff)
downloadnfs-utils-57af0cce3ed6f555bb40132d667e8b10d41855ca.tar.gz
nfs-utils-57af0cce3ed6f555bb40132d667e8b10d41855ca.tar.xz
nfs-utils-57af0cce3ed6f555bb40132d667e8b10d41855ca.zip
Made some aesthetic changes to the code that sets
the defaults that were a result of the code review. Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/mount/network.c')
-rw-r--r--utils/mount/network.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/mount/network.c b/utils/mount/network.c
index d4ecbc9..7b1152a 100644
--- a/utils/mount/network.c
+++ b/utils/mount/network.c
@@ -172,9 +172,9 @@ static const unsigned long probe_mnt3_first[] = {
0,
};
-inline const unsigned int *set_default_proto(void);
+static const unsigned int *nfs_default_proto(void);
#ifdef MOUNT_CONFIG
-inline const unsigned int *set_default_proto()
+static const unsigned int *nfs_default_proto()
{
extern unsigned long config_default_proto;
/*
@@ -187,7 +187,7 @@ inline const unsigned int *set_default_proto()
return probe_tcp_first;
}
#else
-inline const unsigned int *set_default_proto()
+static const unsigned int *nfs_default_proto()
{
return probe_tcp_first;
}
@@ -633,7 +633,7 @@ static int nfs_probe_nfsport(const struct sockaddr *sap, const socklen_t salen,
if (nfs_mount_data_version >= 4) {
const unsigned int *probe_proto;
- probe_proto = set_default_proto();
+ probe_proto = nfs_default_proto();
return nfs_probe_port(sap, salen, pmap,
probe_nfs3_first, probe_proto);