From 7c96fc46bb3aec5e9b8ecc4b637e66dc33db3a90 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Mon, 16 Apr 2007 11:20:24 +1000 Subject: [PATCH] Make that last patch compile... --- utils/statd/sm-notify.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); -- 2.39.5