summaryrefslogtreecommitdiff
path: root/nfs/mount.c
diff options
context:
space:
mode:
authorMichael Kelly <mike@weatherwax.co.uk>2025-07-14 18:03:57 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2025-07-14 18:04:39 +0200
commit4951192cd25c2e1a7058046289d234eedcd39d70 (patch)
tree444bf7491c1fb5bd5cc7e7264711e444eb04fe12 /nfs/mount.c
parentecb2d6fe006e7ee622126a8d773469be332fabdd (diff)
nfs: Use the variables for NFS program and NFS version rather than constants.
Diffstat (limited to 'nfs/mount.c')
-rw-r--r--nfs/mount.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nfs/mount.c b/nfs/mount.c
index 65b9a9b1..75a6f9b3 100644
--- a/nfs/mount.c
+++ b/nfs/mount.c
@@ -231,8 +231,8 @@ mount_root (char *name, char *host)
error (0, errno, "rpc");
goto error_with_rpcbuf;
}
- *(p++) = htonl (NFS_PROGRAM);
- *(p++) = htonl (NFS_VERSION);
+ *(p++) = htonl (nfs_program);
+ *(p++) = htonl (nfs_version);
*(p++) = htonl (IPPROTO_UDP);
*(p++) = htonl (0);
err = conduct_rpc (&rpcbuf, &p);