aboutsummaryrefslogtreecommitdiff
path: root/util-linux/nfsmount.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/nfsmount.c')
-rw-r--r--util-linux/nfsmount.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/util-linux/nfsmount.c b/util-linux/nfsmount.c
index 75f341a92..e9d6dc635 100644
--- a/util-linux/nfsmount.c
+++ b/util-linux/nfsmount.c
@@ -151,11 +151,11 @@ static const int MS_NODIRATIME = 2048; /* Do not update directory access time
151#define NFS_MOUNT_VERSION 4 151#define NFS_MOUNT_VERSION 4
152 152
153struct nfs2_fh { 153struct nfs2_fh {
154 char data[32]; 154 char data[32];
155}; 155};
156struct nfs3_fh { 156struct nfs3_fh {
157 unsigned short size; 157 unsigned short size;
158 unsigned char data[64]; 158 unsigned char data[64];
159}; 159};
160 160
161struct nfs_mount_data { 161struct nfs_mount_data {
@@ -687,7 +687,7 @@ int nfsmount(const char *spec, const char *node, int *flags,
687 mountprog, 687 mountprog,
688 mountvers, 688 mountvers,
689 proto, 689 proto,
690 mountport); 690 mountport);
691 691
692 /* contact the mount daemon via TCP */ 692 /* contact the mount daemon via TCP */
693 mount_server_addr.sin_port = htons(pm_mnt->pm_port); 693 mount_server_addr.sin_port = htons(pm_mnt->pm_port);
@@ -810,7 +810,7 @@ int nfsmount(const char *spec, const char *node, int *flags,
810 810
811 if (tcp) { 811 if (tcp) {
812 if (nfs_mount_version < 3) { 812 if (nfs_mount_version < 3) {
813 printf(_("NFS over TCP is not supported.\n")); 813 printf(_("NFS over TCP is not supported.\n"));
814 goto fail; 814 goto fail;
815 } 815 }
816 fsock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); 816 fsock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);