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 1059a88..98c03f9 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);