From: Neil Brown Date: Mon, 16 Apr 2007 01:20:24 +0000 (+1000) Subject: Make that last patch compile... X-Git-Tag: nfs-utils-1-1-0-rc2~6 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=7c96fc46bb3aec5e9b8ecc4b637e66dc33db3a90;p=nfs-utils.git Make that last patch compile... --- diff --git a/utils/statd/sm-notify.c b/utils/statd/sm-notify.c index 1059a88..98c03f9 100644 --- a/utils/statd/sm-notify.c +++ b/utils/statd/sm-notify.c @@ -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);