]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Removed warnings from nfsmount.c
authorSteve Dickson <steved@redhat.com>
Tue, 20 Jul 2010 22:40:31 +0000 (18:40 -0400)
committerSteve Dickson <steved@redhat.com>
Mon, 9 Aug 2010 13:57:02 +0000 (09:57 -0400)
nfsmount.c: In function 'nfsmount':
nfsmount.c:513: warning: missing initializer
nfsmount.c:513: warning: (near initialization for 'mnt_server.saddr')
nfsmount.c:514: warning: missing initializer
nfsmount.c:514: warning: (near initialization for 'nfs_server.saddr')

Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mount/nfsmount.c

index 6b3356c05efe57d6a7ee0efeac665c530c2446ad..5b934b5205e9c51931592c476446978b58511352 100644 (file)
@@ -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;