aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/hget.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-07-19 18:00:07 +0000
committerrsc <devnull@localhost>2005-07-19 18:00:07 +0000
commit1c171e3add096f5fbecceefd19f21a43c08b5509 (patch)
treee8b4ac09d6909617761c9ad476ff295d0e91d195 /src/cmd/hget.c
parent86a1a5e7b30c37ad1d1a169855eb7b94b00d6aec (diff)
downloadplan9port-1c171e3add096f5fbecceefd19f21a43c08b5509.tar.gz
plan9port-1c171e3add096f5fbecceefd19f21a43c08b5509.tar.bz2
plan9port-1c171e3add096f5fbecceefd19f21a43c08b5509.zip
I just hate to be pushed around by some @#$%^& machine.
Diffstat (limited to 'src/cmd/hget.c')
-rw-r--r--src/cmd/hget.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/hget.c b/src/cmd/hget.c
index 8fa1432d..1cd11abd 100644
--- a/src/cmd/hget.c
+++ b/src/cmd/hget.c
@@ -712,7 +712,7 @@ hhmtime(char *p, URL *u, Range *r)
tm.mon = 5;
} else {
for(p = month; *p; p++)
- *p = tolower(*p);
+ *p = tolower((uchar)*p);
for(i = 0; i < 12; i++)
if(strncmp(&monthchars[i*3], month, 3) == 0){
tm.mon = i;
@@ -732,7 +732,7 @@ hhmtime(char *p, URL *u, Range *r)
tm.sec = strtoul(p, &p, 10);
}
}
- if(tolower(*p) == 'p')
+ if(tolower((uchar)*p) == 'p')
tm.hour += 12;
}
@@ -1129,7 +1129,7 @@ passive(int ctl, URL *u)
p = strchr(msg, '(');
if(p == nil){
for(p = msg+3; *p; p++)
- if(isdigit(*p))
+ if(isdigit((uchar)*p))
break;
} else
p++;
@@ -1253,7 +1253,7 @@ int
cistrncmp(char *a, char *b, int n)
{
while(n-- > 0){
- if(tolower(*a++) != tolower(*b++))
+ if(tolower((uchar)*a++) != tolower((uchar)*b++))
return -1;
}
return 0;