diff options
Diffstat (limited to 'libexec/talkd/process.c')
-rw-r--r-- | libexec/talkd/process.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/talkd/process.c b/libexec/talkd/process.c index c6ec34d..d796cd5 100644 --- a/libexec/talkd/process.c +++ b/libexec/talkd/process.c @@ -155,8 +155,8 @@ do_announce(CTL_MSG *mp, CTL_RESPONSE *rp) rp->answer = result; return; } -#define satosin(sa) ((struct sockaddr_in *)(sa)) - hp = gethostbyaddr((char *)&satosin(&mp->ctl_addr)->sin_addr, +#define satosin(sa) ((struct sockaddr_in *)(void *)(sa)) + hp = gethostbyaddr(&satosin(&mp->ctl_addr)->sin_addr, sizeof (struct in_addr), AF_INET); if (hp == (struct hostent *)0) { rp->answer = MACHINE_UNKNOWN; |