[head tinderbox] failure on amd64/amd64
Eygene Ryabinkin
rea-fbsd at codelabs.ru
Mon Jun 8 08:55:51 UTC 2009
Mon, Jun 08, 2009 at 06:41:07PM +1000, Peter Jeremy wrote:
> On 2009-Jun-08 11:00:56 +0400, Eygene Ryabinkin <rea-fbsd at codelabs.ru> 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
{_.-``-' {_/ #
More information about the freebsd-current
mailing list