Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Sep 2002 23:10:38 +0200
From:      "Peter J. Blok" <Peter.Blok@inter.NL.net>
To:        freebsd-sparc@freebsd.org
Subject:   cast void * to int
Message-ID:  <200209222310.38552.Peter.Blok@inter.NL.net>

next in thread | raw e-mail | index | archive | help
Hi,

I am trying to port some modules to the sparc64 port, but I am getting 
warnings on places where void * is used to store an int.

For example the void * private, sometimes point towards something. On other 
places it is used to store a 32 bit int.

What is the nicest way to get around this? I mean when porting to a 64-bit 
architecture, lots of times this must have happened. What is the "best - 
freebsd" way to handle it? I can come up with a union, but that means lots of 
changes.

Peter

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-sparc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209222310.38552.Peter.Blok>