From owner-cvs-src@FreeBSD.ORG Mon Aug 2 00:03:42 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 56B7D16A4CE; Mon, 2 Aug 2004 00:03:42 +0000 (GMT) Received: from www.cryptography.com (li-22.members.linode.com [64.5.53.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C4D543D54; Mon, 2 Aug 2004 00:03:42 +0000 (GMT) (envelope-from nate@cryptography.com) Received: from [10.0.5.50] (adsl-64-171-186-94.dsl.snfc21.pacbell.net [64.171.186.94]) by www.cryptography.com (8.12.8/8.12.8) with ESMTP id i7203fra025164; Sun, 1 Aug 2004 17:03:41 -0700 Message-ID: <410D84DA.3040701@cryptography.com> Date: Sun, 01 Aug 2004 17:03:38 -0700 From: Nate Lawson User-Agent: Mozilla Thunderbird 0.7.2 (Windows/20040707) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Pawel Jakub Dawidek References: <20040731151315.99E5916A539@hub.freebsd.org> In-Reply-To: <20040731151315.99E5916A539@hub.freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/bin/dd args.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Aug 2004 00:03:42 -0000 Pawel Jakub Dawidek wrote: > pjd 2004-07-31 15:13:08 UTC > > FreeBSD src repository > > Modified files: > bin/dd args.c > Log: > Allow for capital letters as size suffixes. > > Inspired by: le > Approved by: green (maintainer) > > Revision Changes Path > 1.39 +20 -8 src/bin/dd/args.c > > @@ -361,18 +361,23 @@ > > mult = 0; > switch (*expr) { > + case 'B': > case 'b': > mult = 512; > break; Instead of doubling the case statements, it's simpler to do "switch (tolower(*expr))" or toupper(). -Nate