programming question: u_char vs. uint32_t

Andrew andrew.chace at gmail.com
Fri May 5 00:59:35 UTC 2006


Hello all,

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?

Thanks,
Andrew



More information about the freebsd-hackers mailing list