From owner-svn-src-head@FreeBSD.ORG Sat Dec 17 21:54:01 2011 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 A7CC51065677; Sat, 17 Dec 2011 21:54:01 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:130:3ffc::401:25]) by mx1.freebsd.org (Postfix) with ESMTP id 37CA38FC0C; Sat, 17 Dec 2011 21:54:01 +0000 (UTC) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id EAE1A25D3811; Sat, 17 Dec 2011 21:53:59 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id D594EBD737D; Sat, 17 Dec 2011 21:53:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id GUW0NQFVNLI5; Sat, 17 Dec 2011 21:53:57 +0000 (UTC) Received: from orange-en1.sbone.de (orange-en1.sbone.de [IPv6:fde9:577b:c1a9:31:cabc:c8ff:fecf:e8e3]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 94858BD737C; Sat, 17 Dec 2011 21:53:57 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: "Bjoern A. Zeeb" In-Reply-To: <201112171721.pBHHLloU069166@svn.freebsd.org> Date: Sat, 17 Dec 2011 21:53:56 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: <4C98B8D8-99F6-4996-A0FB-C128D9384180@lists.zabbadoz.net> References: <201112171721.pBHHLloU069166@svn.freebsd.org> To: Dimitry Andric X-Mailer: Apple Mail (2.1084) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r228650 - head/usr.bin/netstat 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, 17 Dec 2011 21:54:01 -0000 On 17. Dec 2011, at 17:21 , Dimitry Andric wrote: > Author: dim > Date: Sat Dec 17 17:21:47 2011 > New Revision: 228650 > URL: http://svn.freebsd.org/changeset/base/228650 >=20 > Log: > In usr.bin/netstat/atalk.c, work around a clang false positive with > printf format warnings and conditional operators. >=20 This does not sound like a good idea. Make clang work. > MFC after: 1 week >=20 > Modified: > head/usr.bin/netstat/atalk.c >=20 > Modified: head/usr.bin/netstat/atalk.c > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > --- head/usr.bin/netstat/atalk.c Sat Dec 17 17:04:30 2011 = (r228649) > +++ head/usr.bin/netstat/atalk.c Sat Dec 17 17:21:47 2011 = (r228650) > @@ -81,7 +81,7 @@ static char mybuf[50]; > return("*"); > } > } > - sprintf(mybuf,"%hu",ntohs(sat->sat_addr.s_net)); > + sprintf(mybuf,"%hu",(short)ntohs(sat->sat_addr.s_net)); > return mybuf; > } >=20 --=20 Bjoern A. Zeeb You have to have visions! Stop bit received. Insert coin for new address family.