summaryrefslogtreecommitdiffstats
path: root/utils/mount/mount.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2007-07-16 16:28:46 -0400
committerNeil Brown <neilb@suse.de>2007-07-20 16:10:51 +1000
commit0dfc8a5426381c6d65aed4d9d0e50bae3238cc8f (patch)
tree85d4cea7a49d37b26780031913a3bce550de1d41 /utils/mount/mount.c
parent13b5fbc6cb4e41cd6a4d80e224ee2feaade65ce1 (diff)
downloadnfs-utils-0dfc8a5426381c6d65aed4d9d0e50bae3238cc8f.tar.gz
nfs-utils-0dfc8a5426381c6d65aed4d9d0e50bae3238cc8f.tar.xz
nfs-utils-0dfc8a5426381c6d65aed4d9d0e50bae3238cc8f.zip
mount.nfs: Move network functions into a common source module
Separate network oriented functions from filesystem oriented functions, for general cleanliness. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'utils/mount/mount.c')
-rw-r--r--utils/mount/mount.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/utils/mount/mount.c b/utils/mount/mount.c
index 96b5697..30946bd 100644
--- a/utils/mount/mount.c
+++ b/utils/mount/mount.c
@@ -42,6 +42,7 @@
#include "nfsumount.h"
#include "mount.h"
#include "error.h"
+#include "network.h"
char *progname;
int nfs_mount_data_version;
@@ -350,12 +351,6 @@ static int chk_mountpoint(char *mount_point)
return 0;
}
-extern u_short getport(
- struct sockaddr_in *saddr,
- u_long prog,
- u_long vers,
- u_int prot);
-
static int probe_statd()
{
struct sockaddr_in addr;