]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/mount/nfsmount.c
mount: Recognize zero as a valid value for the port= option
[nfs-utils.git] / utils / mount / nfsmount.c
index 6b3356c05efe57d6a7ee0efeac665c530c2446ad..1298fe44485789bae59cc10cf7430c2599b4f5a5 100644 (file)
@@ -21,7 +21,7 @@
  * Wed Oct  1 23:55:28 1997: Dick Streefland <dick_streefland@tasking.com>
  * Implemented the "bg", "fg" and "retry" mount options for NFS.
  *
- * 1999-02-22 Arkadiusz MiΒΆkiewicz <misiek@pld.ORG.PL>
+ * 1999-02-22 Arkadiusz Miskiewicz <misiek@pld.ORG.PL>
  * - added Native Language Support
  *
  * Modified by Olaf Kirch and Trond Myklebust for new NFS code,
@@ -510,8 +510,12 @@ nfsmount(const char *spec, const char *node, int flags,
        int val;
        static int doonce = 0;
 
-       clnt_addr_t mnt_server = { &mounthost, };
-       clnt_addr_t nfs_server = { &hostname, };
+       clnt_addr_t mnt_server = { 
+               .hostname = &mounthost 
+       };
+       clnt_addr_t nfs_server = { 
+               .hostname = &hostname 
+       };
        struct sockaddr_in *nfs_saddr = &nfs_server.saddr;
        struct pmap  *mnt_pmap = &mnt_server.pmap,
                     *nfs_pmap = &nfs_server.pmap;