From owner-freebsd-hackers@FreeBSD.ORG Fri May 5 00:59:35 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 AEAE816A402 for ; Fri, 5 May 2006 00:59:35 +0000 (UTC) (envelope-from andrew.chace@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF43643D64 for ; Fri, 5 May 2006 00:59:32 +0000 (GMT) (envelope-from andrew.chace@gmail.com) Received: by nz-out-0102.google.com with SMTP id l1so563144nzf for ; Thu, 04 May 2006 17:59:31 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=FxLiqSZw7LB15YOAopQeN9Q6WjRaufNg+IXrcduRAvezwV4uEicoyl/AeToYWzJjQEx1YpCpvQrHF+5tAZlXNMz8kJfzIfRXOnTZ4iHDvBCOPub7dxMtrtWvKeWGk/1VMHOIkD23Pjn2U2S+dP0O9vFnRrrIxYdH0SgKXyd40eU= Received: by 10.64.49.20 with SMTP id w20mr184973qbw; Thu, 04 May 2006 17:59:31 -0700 (PDT) Received: from ?192.168.0.6? ( [70.56.4.48]) by mx.gmail.com with ESMTP id f13sm14313qba.2006.05.04.17.59.31; Thu, 04 May 2006 17:59:31 -0700 (PDT) From: Andrew To: freebsd-hackers@freebsd.org Content-Type: text/plain Date: Thu, 04 May 2006 19:57:49 -0500 Message-Id: <1146790669.3352.38.camel@LatitudeFC5.network> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 (2.6.1-1.fc5.2) Content-Transfer-Encoding: 7bit Subject: 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 00:59:35 -0000 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