From owner-freebsd-current@FreeBSD.ORG Mon Jun 8 08:55:50 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F00D7106566C for ; Mon, 8 Jun 2009 08:55:50 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id A5D988FC0C for ; Mon, 8 Jun 2009 08:55:50 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=one; d=codelabs.ru; h=Received:Date:From:To:Cc:Subject:Message-ID:Reply-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:Sender; b=hkr8IasEhl4YXbtAvAhbDoq/nEsHe65YPrxbqZqkWVauwBnwSHBu153FV6Lugrfvp5BZncylhUtLXCZt2ht85o/XMH84AGrQJCjNukogqPR/50FEgW/8cQDuv7HAmDxNJZ7HUNHSX8VikYeIqEb4SywkOJjRchXVu/zSnJ82uHk=; Received: from void.codelabs.ru (void.codelabs.ru [144.206.177.25]) by 0.mx.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1MDadx-000O0H-7s; Mon, 08 Jun 2009 12:55:49 +0400 Date: Mon, 8 Jun 2009 12:55:47 +0400 From: Eygene Ryabinkin To: Peter Jeremy Message-ID: References: <20090608025715.499087302F@freebsd-current.sentex.ca> <8LPG99US2/4EsGlonyfMSkDb40o@XX1fo6zQUfC4h0jjRC6IBz3oNH4> <20090608084107.GE9529@server.vk2pj.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090608084107.GE9529@server.vk2pj.dyndns.org> Sender: rea-fbsd@codelabs.ru Cc: current@freebsd.org Subject: Re: [head tinderbox] failure on amd64/amd64 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rea-fbsd@codelabs.ru List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jun 2009 08:55:51 -0000 Mon, Jun 08, 2009 at 06:41:07PM +1000, Peter Jeremy wrote: > On 2009-Jun-08 11:00:56 +0400, Eygene Ryabinkin wrote: > > ifr->ifr_data = (caddr_t)(size_t)options; > >----- > >will be more correct and will disable this warning -- it will convert > >u_int to the proper type that will be able to carry addresses for the > >given platform. > > Whilst I notice this specific problem has been resolved differently, > for future reference, you should use [u]intptr_t rather than [s]size_t > for this purpose. Thanks -- I had trouble with recalling the name of 'intptr_t', so used 'size_t'. Just curious -- are there platforms/compilers on that these two are really different in sizes? Or this is pure semantical difference? -- Eygene _ ___ _.--. # \`.|\..----...-'` `-._.-'_.-'` # Remember that it is hard / ' ` , __.--' # to read the on-line manual )/' _/ \ `-_, / # while single-stepping the kernel. `-'" `"\_ ,_.-;_.-\_ ', fsc/as # _.-'_./ {_.' ; / # -- FreeBSD Developers handbook {_.-``-' {_/ #