Return-Path: Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 16843 invoked by uid 500); 23 Jun 2002 06:13:19 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 16832 invoked by uid 500); 23 Jun 2002 06:13:19 -0000 Delivered-To: apmail-httpd-2.0-cvs@apache.org Date: 23 Jun 2002 06:13:18 -0000 Message-ID: <20020623061318.89273.qmail@icarus.apache.org> From: wrowe@apache.org To: httpd-2.0-cvs@apache.org Subject: cvs commit: httpd-2.0/modules/metadata mod_mime_magic.c X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N wrowe 2002/06/22 23:13:18 Modified: modules/metadata mod_mime_magic.c Log: cleanup uses of apr_ischar() macros (no cast required) Revision Changes Path 1.58 +5 -5 httpd-2.0/modules/metadata/mod_mime_magic.c Index: mod_mime_magic.c =================================================================== RCS file: /home/cvs/httpd-2.0/modules/metadata/mod_mime_magic.c,v retrieving revision 1.57 retrieving revision 1.58 diff -u -r1.57 -r1.58 --- mod_mime_magic.c 17 May 2002 11:33:10 -0000 1.57 +++ mod_mime_magic.c 23 Jun 2002 06:13:17 -0000 1.58 @@ -945,7 +945,7 @@ magic_rsl_puts(r, MIME_BINARY_UNKNOWN); } -#define EATAB {while (apr_isspace((unsigned char) *l)) ++l;} +#define EATAB {while (apr_isspace(*l)) ++l;} /* * apprentice - load configuration from the magic file r @@ -1279,7 +1279,7 @@ } /* FALL THROUGH */ default: - if (*l == 'x' && apr_isspace((unsigned char) l[1])) { + if (*l == 'x' && apr_isspace(l[1])) { m->reln = *l; ++l; goto GetDesc; /* Bill The Cat */ @@ -1351,7 +1351,7 @@ register int val; while ((c = *s++) != '\0') { - if (apr_isspace((unsigned char) c)) + if (apr_isspace(c)) break; if (p >= pmax) { ap_log_error(APLOG_MARK, APLOG_ERR, 0, serv, @@ -1454,7 +1454,7 @@ /* Single hex char to int; -1 if not a hex char. */ static int hextoint(int c) { - if (apr_isdigit((unsigned char) c)) + if (apr_isdigit(c)) return c - '0'; if ((c >= 'a') && (c <= 'f')) return c + 10 - 'a'; @@ -2257,7 +2257,7 @@ * Darwin. */ -#define isodigit(c) ( ((c) >= '0') && ((c) <= '7') ) +#define isodigit(c) (((unsigned char)(c) >= '0') && ((unsigned char)(c) <= '7')) /* * Return 0 if the checksum is bad (i.e., probably not a tar archive), 1 for