diff options
| author | Ed Schouten <ed@FreeBSD.org> | 2009-12-26 14:33:55 +0000 |
|---|---|---|
| committer | Ed Schouten <ed@FreeBSD.org> | 2009-12-26 14:33:55 +0000 |
| commit | af5bd8feb3abaa220342f37cd932312fd5b59eda (patch) | |
| tree | 6ea671d6ddcc011a7c3e2b9dbe78e8b3ab8c8637 /libexec/talkd | |
| parent | bf792d68c74c215a216d39a911325a6acac0aa79 (diff) | |
Notes
Diffstat (limited to 'libexec/talkd')
| -rw-r--r-- | libexec/talkd/Makefile | 3 | ||||
| -rw-r--r-- | libexec/talkd/process.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/libexec/talkd/Makefile b/libexec/talkd/Makefile index 10f65196c099..4900857f5c17 100644 --- a/libexec/talkd/Makefile +++ b/libexec/talkd/Makefile @@ -6,7 +6,8 @@ SRCS= talkd.c announce.c process.c table.c print.c ttymsg.c .PATH: ${.CURDIR}/../../usr.bin/wall MAN= talkd.8 CFLAGS+=-I${.CURDIR}/../../usr.bin/wall -WFORMAT=0 + +WARNS?= 6 DPADD= ${LIBULOG} LDADD= -lulog diff --git a/libexec/talkd/process.c b/libexec/talkd/process.c index c6ec34d47147..d796cd59659d 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; |
