X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmount%2Fnfsmount.c;h=1298fe44485789bae59cc10cf7430c2599b4f5a5;hp=6b3356c05efe57d6a7ee0efeac665c530c2446ad;hb=05f93b531d59df6e976d9b40c97b51546524040a;hpb=1cf5510adf8cbf7c342d8fce73f0b62ac1f93612 diff --git a/utils/mount/nfsmount.c b/utils/mount/nfsmount.c index 6b3356c..1298fe4 100644 --- a/utils/mount/nfsmount.c +++ b/utils/mount/nfsmount.c @@ -21,7 +21,7 @@ * Wed Oct 1 23:55:28 1997: Dick Streefland * Implemented the "bg", "fg" and "retry" mount options for NFS. * - * 1999-02-22 Arkadiusz Mi¶kiewicz + * 1999-02-22 Arkadiusz Miskiewicz * - 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;