summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1999-10-29 05:11:06 +0000
committerache <ache@FreeBSD.org>1999-10-29 05:11:06 +0000
commit25e78d8b60d3d6199b950bbf6999439bf235e17f (patch)
tree906e7a3a0e8e6cd1cb98e3fa5edb8a8f873341a3
parent85e6b23b2ebef71410255584f307a2f667913ee1 (diff)
downloadFreeBSD-src-25e78d8b60d3d6199b950bbf6999439bf235e17f.zip
FreeBSD-src-25e78d8b60d3d6199b950bbf6999439bf235e17f.tar.gz
toupper -> tolower to match changed behaviour of new grep case fold
-rw-r--r--usr.bin/comm/comm.c4
-rw-r--r--usr.bin/uniq/uniq.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/comm/comm.c b/usr.bin/comm/comm.c
index 1adaaec..0a55c46 100644
--- a/usr.bin/comm/comm.c
+++ b/usr.bin/comm/comm.c
@@ -210,10 +210,10 @@ stricoll(s1, s2)
char *p, line1[MAXLINELEN], line2[MAXLINELEN];
for (p = line1; *s1; s1++)
- *p++ = toupper((unsigned char)*s1);
+ *p++ = tolower((unsigned char)*s1);
*p = '\0';
for (p = line2; *s2; s2++)
- *p++ = toupper((unsigned char)*s2);
+ *p++ = tolower((unsigned char)*s2);
*p = '\0';
return strcoll(s1, s2);
}
diff --git a/usr.bin/uniq/uniq.c b/usr.bin/uniq/uniq.c
index e185cef..9451dfe 100644
--- a/usr.bin/uniq/uniq.c
+++ b/usr.bin/uniq/uniq.c
@@ -270,10 +270,10 @@ stricoll(s1, s2)
char *p, line1[MAXLINELEN], line2[MAXLINELEN];
for (p = line1; *s1; s1++)
- *p++ = toupper((unsigned char)*s1);
+ *p++ = tolower((unsigned char)*s1);
*p = '\0';
for (p = line2; *s2; s2++)
- *p++ = toupper((unsigned char)*s2);
+ *p++ = tolower((unsigned char)*s2);
*p = '\0';
return strcoll(s1, s2);
}
OpenPOWER on IntegriCloud