From owner-freebsd-hackers@FreeBSD.ORG Fri May 5 01:03:38 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 30D6E16A400 for ; Fri, 5 May 2006 01:03:38 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id C57CA43D48 for ; Fri, 5 May 2006 01:03:37 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (lmr3ho3ynj7d50vs@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.4/8.13.3) with ESMTP id k4513aqk084019; Thu, 4 May 2006 18:03:36 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.4/8.13.3/Submit) id k4513a5j084018; Thu, 4 May 2006 18:03:36 -0700 (PDT) (envelope-from jmg) Date: Thu, 4 May 2006 18:03:35 -0700 From: John-Mark Gurney To: Andrew Message-ID: <20060505010335.GW728@funkthat.com> Mail-Followup-To: Andrew , freebsd-hackers@freebsd.org References: <1146790669.3352.38.camel@LatitudeFC5.network> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1146790669.3352.38.camel@LatitudeFC5.network> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: freebsd-hackers@freebsd.org Subject: Re: programming question: u_char vs. uint32_t X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 May 2006 01:03:38 -0000 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... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."