Date: Thu, 04 May 2006 20:06:52 -0500 From: Andrew <andrew.chace@gmail.com> To: John-Mark Gurney <gurney_j@resnet.uoregon.edu> Cc: freebsd-hackers@freebsd.org Subject: Re: programming question: u_char vs. uint32_t Message-ID: <1146791213.3352.40.camel@LatitudeFC5.network> In-Reply-To: <20060505010335.GW728@funkthat.com> References: <1146790669.3352.38.camel@LatitudeFC5.network> <20060505010335.GW728@funkthat.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 2006-05-04 at 18:03 -0700, John-Mark Gurney wrote: > Andrew wrote this message on Thu, May 04, 2006 at 19:57 -0500: > > I'm reading through /usr/src/sys/dd/dd.h, and I noticed the following > > lines: > > > > 39 u_char *db; /* buffer address */ > > 40 u_char *dbp; /* current buffer I/O address */ > > > > Why was u_char used instead of uint32_t? Aren't pointers always 32 bits > > on a 32 bit machine? > > You're confusing the type of the pointer w/ a pointer... These are > correct, please read a basic intro to pointers in C... Ahh yes, thank-you. A small case of cognitive indigestion; I think it's clearing up now. ;-) -Andrew
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1146791213.3352.40.camel>