From owner-freebsd-sparc Sun Sep 22 14:13:23 2002 Delivered-To: freebsd-sparc@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3808237B401 for ; Sun, 22 Sep 2002 14:13:23 -0700 (PDT) Received: from smtp05.wxs.nl (smtp05.wxs.nl [195.121.6.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3095843E4A for ; Sun, 22 Sep 2002 14:13:22 -0700 (PDT) (envelope-from Peter.Blok@inter.NL.net) Received: from bsdpc ([80.60.248.65]) by smtp05.wxs.nl (Netscape Messaging Server 4.15) with ESMTP id H2UYY801.DRV for ; Sun, 22 Sep 2002 23:13:20 +0200 Content-Type: text/plain; charset="us-ascii" From: "Peter J. Blok" To: freebsd-sparc@freebsd.org Subject: cast void * to int Date: Sun, 22 Sep 2002 23:10:38 +0200 User-Agent: KMail/1.4.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200209222310.38552.Peter.Blok@inter.NL.net> Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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