From owner-svn-src-head@FreeBSD.ORG Sat Dec 26 14:33:55 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB3261065670; Sat, 26 Dec 2009 14:33:55 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id AB0058FC1A; Sat, 26 Dec 2009 14:33:55 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id nBQEXtdb012692; Sat, 26 Dec 2009 14:33:55 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id nBQEXtj1012691; Sat, 26 Dec 2009 14:33:55 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <200912261433.nBQEXtj1012691@svn.freebsd.org> From: Ed Schouten Date: Sat, 26 Dec 2009 14:33:55 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r201022 - head/libexec/talkd X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Dec 2009 14:33:55 -0000 Author: ed Date: Sat Dec 26 14:33:55 2009 New Revision: 201022 URL: http://svn.freebsd.org/changeset/base/201022 Log: Modify the sources to make WARNS=6 work. Modified: head/libexec/talkd/Makefile head/libexec/talkd/process.c Modified: head/libexec/talkd/Makefile ============================================================================== --- head/libexec/talkd/Makefile Sat Dec 26 13:58:52 2009 (r201021) +++ head/libexec/talkd/Makefile Sat Dec 26 14:33:55 2009 (r201022) @@ -6,7 +6,8 @@ SRCS= talkd.c announce.c process.c table .PATH: ${.CURDIR}/../../usr.bin/wall MAN= talkd.8 CFLAGS+=-I${.CURDIR}/../../usr.bin/wall -WFORMAT=0 + +WARNS?= 6 DPADD= ${LIBULOG} LDADD= -lulog Modified: head/libexec/talkd/process.c ============================================================================== --- head/libexec/talkd/process.c Sat Dec 26 13:58:52 2009 (r201021) +++ head/libexec/talkd/process.c Sat Dec 26 14:33:55 2009 (r201022) @@ -155,8 +155,8 @@ do_announce(CTL_MSG *mp, CTL_RESPONSE *r 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;