From owner-freebsd-hackers@FreeBSD.ORG Fri May 5 01:08:36 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 3F5EB16A403 for ; Fri, 5 May 2006 01:08:36 +0000 (UTC) (envelope-from andrew.chace@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC38343D48 for ; Fri, 5 May 2006 01:08:35 +0000 (GMT) (envelope-from andrew.chace@gmail.com) Received: by nz-out-0102.google.com with SMTP id l1so564192nzf for ; Thu, 04 May 2006 18:08:35 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=Of5SIBJYARtPwd/XGGYglqGJrF510Jl9HgW6h3QSyh2TQxHdftIwbh6DTW23pCwrtOkTcU9oU/tKmOp7cfv5hbuc10+fHbhtRrvMk9bZKCBs2sO3H+My7zHpml9a87I52ktg1pBOAAJxm5Sk+ZqnAcBaRV3FA3ULq/ptPGtxrE8= Received: by 10.65.185.13 with SMTP id m13mr219670qbp; Thu, 04 May 2006 18:08:35 -0700 (PDT) Received: from ?192.168.0.6? ( [70.56.4.48]) by mx.gmail.com with ESMTP id e16sm325763qbe.2006.05.04.18.08.34; Thu, 04 May 2006 18:08:34 -0700 (PDT) From: Andrew To: John-Mark Gurney In-Reply-To: <20060505010335.GW728@funkthat.com> References: <1146790669.3352.38.camel@LatitudeFC5.network> <20060505010335.GW728@funkthat.com> Content-Type: text/plain Date: Thu, 04 May 2006 20:06:52 -0500 Message-Id: <1146791213.3352.40.camel@LatitudeFC5.network> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 (2.6.1-1.fc5.2) Content-Transfer-Encoding: 7bit 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 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:08:36 -0000 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