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 {_.-``-' {_/ #Received on Mon Jun 08 2009 - 06:55:50 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:49 UTC