Date: Mon, 2 Aug 2004 09:02:14 +0200 From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: Nate Lawson <nate@cryptography.com> Cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/bin/dd args.c Message-ID: <20040802070214.GN39839@darkness.comp.waw.pl> In-Reply-To: <410D84DA.3040701@cryptography.com> References: <20040731151315.99E5916A539@hub.freebsd.org> <410D84DA.3040701@cryptography.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Sun, Aug 01, 2004 at 05:03:38PM -0700, Nate Lawson wrote:
+> >@@ -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().
Sure, but I leave it to maintainer to decide.
I personally prefer to see exactly what's going on, and I also wasn't
sure while committing if we really want capital 'W'.
--
Pawel Jakub Dawidek http://www.FreeBSD.org
pjd@FreeBSD.org http://garage.freebsd.pl
FreeBSD committer Am I Evil? Yes, I Am!
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQFBDeb2ForvXbEpPzQRAm53AKDHq3Do6Ghe1yVR1ucoq3/A7fKMHwCg83J0
kYCjZZMvXpxvZQpLRQ3lebA=
=lreb
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040802070214.GN39839>
