Simplify (Masao Uebayashi)

This commit is contained in:
christos 2006-03-22 05:03:10 +00:00
parent 8d95e8aad0
commit 549b5ed9d1
1 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: update.c,v 1.15 2006/03/22 04:24:14 christos Exp $ */
/* $NetBSD: update.c,v 1.16 2006/03/22 05:03:10 christos Exp $ */
/*-
* Copyright (c) 1990, 1993
@ -46,7 +46,7 @@
#if 0
static char sccsid[] = "@(#)update.c 8.1 (Berkeley) 5/31/93";
#else
__RCSID("$NetBSD: update.c,v 1.15 2006/03/22 04:24:14 christos Exp $");
__RCSID("$NetBSD: update.c,v 1.16 2006/03/22 05:03:10 christos Exp $");
#endif
#endif /* not lint */
@ -260,12 +260,12 @@ name(const PLANE *p)
int
number(int l)
{
if ((l < 'a' && l > 'z') || (l < 'A' && l > 'Z'))
return (-1);
else if (l >= 'a' && l <= 'z')
if (islower((unsigned char)l)
return (l - 'a');
else
else if (isupper((unsigned char)l)
return (l - 'A');
else
return (-1);
}
int