summaryrefslogtreecommitdiffstats
path: root/usr.bin/mail/list.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2001-12-19 21:50:22 +0000
committerache <ache@FreeBSD.org>2001-12-19 21:50:22 +0000
commit8d59503ab28990d5f3e683cef1f40660c7b50508 (patch)
treea101958a87607acd1ecdfdaf29ad688ec4ed0209 /usr.bin/mail/list.c
parent551ea08f0f87088f86af940cfa8a858ab92dddf3 (diff)
downloadFreeBSD-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/list.c')
-rw-r--r--usr.bin/mail/list.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/mail/list.c b/usr.bin/mail/list.c
index 1dbc587..be5df83 100644
--- a/usr.bin/mail/list.c
+++ b/usr.bin/mail/list.c
@@ -555,9 +555,9 @@ scan(sp)
* Return TNUMBER when done.
*/
- if (isdigit(c)) {
+ if (isdigit((unsigned char)c)) {
lexnumber = 0;
- while (isdigit(c)) {
+ while (isdigit((unsigned char)c)) {
lexnumber = lexnumber*10 + c - '0';
*cp2++ = c;
c = *cp++;
@@ -678,7 +678,7 @@ matchsender(str, mesg)
while (*cp2 != '\0') {
if (*cp == '\0')
return (1);
- if (toupper(*cp++) != toupper(*cp2++)) {
+ if (toupper((unsigned char)*cp++) != toupper((unsigned char)*cp2++)) {
cp2 = ++backup;
cp = str;
}
@@ -717,7 +717,7 @@ matchto(str, mesg)
while (*cp2 != '\0') {
if (*cp == '\0')
return (1);
- if (toupper(*cp++) != toupper(*cp2++)) {
+ if (toupper((unsigned char)*cp++) != toupper((unsigned char)*cp2++)) {
cp2 = ++backup;
cp = str;
}
@@ -775,7 +775,7 @@ matchsubj(str, mesg)
while (*cp2 != '\0') {
if (*cp == '\0')
return (1);
- if (toupper(*cp++) != toupper(*cp2++)) {
+ if (toupper((unsigned char)*cp++) != toupper((unsigned char)*cp2++)) {
cp2 = ++backup;
cp = str;
}
OpenPOWER on IntegriCloud