]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Make that last patch compile...
authorNeil Brown <neilb@suse.de>
Mon, 16 Apr 2007 01:20:24 +0000 (11:20 +1000)
committerNeil Brown <neilb@suse.de>
Mon, 16 Apr 2007 01:20:24 +0000 (11:20 +1000)
utils/statd/sm-notify.c

index 1059a888949cd21984837de1af31683fba90695f..98c03f9d142656906d36bb7e558851d6b5328c6c 100644 (file)
@@ -251,9 +251,10 @@ notify(void)
                }
        } else {
                struct servent *se;
-               (void) bindresvport(sock, (struct sockaddr_in *) &local_addr);
+               struct sockaddr_in *sin = (struct sockaddr_in *)&local_addr;
+               (void) bindresvport(sock, sin);
                /* try to avoid known ports */
-               se = getservbyport(local_addr.sin_port, "udp");
+               se = getservbyport(sin->sin_port, "udp");
                if (se && retry_cnt < 100) {
                        retry_cnt++;
                        close(sock);