summaryrefslogtreecommitdiffstats
path: root/usr.bin/uniq
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1999-10-24 04:21:42 +0000
committerache <ache@FreeBSD.org>1999-10-24 04:21:42 +0000
commitc870ad362411ad3d1fca6f747f0a1884f6bd2284 (patch)
tree4f36ee79729658eab3a8cea9630f467592ebb451 /usr.bin/uniq
parent9fbc2f9470f3420f43c0d1fffd44b82e171dcd8e (diff)
downloadFreeBSD-src-c870ad362411ad3d1fca6f747f0a1884f6bd2284.zip
FreeBSD-src-c870ad362411ad3d1fca6f747f0a1884f6bd2284.tar.gz
toupper->tolower to match what strcasecmp does
Diffstat (limited to 'usr.bin/uniq')
-rw-r--r--usr.bin/uniq/uniq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/uniq/uniq.c b/usr.bin/uniq/uniq.c
index 11f5ea5..1a5d8dc 100644
--- a/usr.bin/uniq/uniq.c
+++ b/usr.bin/uniq/uniq.c
@@ -73,10 +73,10 @@ int stricoll(char *s1, char *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