Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Aug 2006 09:56:40 -0400
From:      Chuck Swiger <cswiger@mac.com>
To:        Only OpenSource <onlyopensource@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: caddr_t or void *
Message-ID:  <44DB3B18.6060609@mac.com>
In-Reply-To: <a779d4420608100607g113b3569te49dfbe6fb7bea5c@mail.gmail.com>
References:  <a779d4420608100607g113b3569te49dfbe6fb7bea5c@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Only OpenSource wrote:
> caddr_t which is a typedef for char* seems to be used quite often in
> the kernel code.  Would void* be preferable to caddr_t ?

No.  Having to cast (void *)'s to the actual data type every time you 
dereference them would be highly annoying.

-- 
-Chuck



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44DB3B18.6060609>