diff options
author | ache <ache@FreeBSD.org> | 2001-12-19 21:50:22 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2001-12-19 21:50:22 +0000 |
commit | 8d59503ab28990d5f3e683cef1f40660c7b50508 (patch) | |
tree | a101958a87607acd1ecdfdaf29ad688ec4ed0209 /usr.bin/mail/head.c | |
parent | 551ea08f0f87088f86af940cfa8a858ab92dddf3 (diff) | |
download | FreeBSD-src-8d59503ab28990d5f3e683cef1f40660c7b50508.zip FreeBSD-src-8d59503ab28990d5f3e683cef1f40660c7b50508.tar.gz |
Add (unsigned char) cast to ctype macros
ftell->ftello, fseek->fseeko
File 'newsize' type int->off_t
Add visible (long) cast to fsize() when it called to small one message file and
result is assigned to long.
Diffstat (limited to 'usr.bin/mail/head.c')
-rw-r--r-- | usr.bin/mail/head.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/mail/head.c b/usr.bin/mail/head.c index 806ab6d..61f43da 100644 --- a/usr.bin/mail/head.c +++ b/usr.bin/mail/head.c @@ -204,11 +204,11 @@ cmatch(cp, tp) while (*cp != '\0' && *tp != '\0') switch (*tp++) { case 'a': - if (!islower(*cp++)) + if (!islower((unsigned char)*cp++)) return (0); break; case 'A': - if (!isupper(*cp++)) + if (!isupper((unsigned char)*cp++)) return (0); break; case ' ': @@ -216,20 +216,20 @@ cmatch(cp, tp) return (0); break; case '0': - if (!isdigit(*cp++)) + if (!isdigit((unsigned char)*cp++)) return (0); break; case 'O': - if (*cp != ' ' && !isdigit(*cp)) + if (*cp != ' ' && !isdigit((unsigned char)*cp)) return (0); cp++; break; case 'p': - if (!ispunct(*cp++)) + if (!ispunct((unsigned char)*cp++)) return (0); break; case 'P': - if (*cp != ' ' && !ispunct(*cp)) + if (*cp != ' ' && !ispunct((unsigned char)*cp)) return (0); cp++; break; |