diff options
author | eadler <eadler@FreeBSD.org> | 2011-12-02 15:41:09 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2011-12-02 15:41:09 +0000 |
commit | bdf8a555586d799896e0aff9adf1ed4749ab120a (patch) | |
tree | 79db9bd23938fe17ea1235cae91996780fe749aa /lib/libc/string/strcoll.c | |
parent | e5b89f2d70c0092ae178473393348aa3de7e2745 (diff) | |
download | FreeBSD-src-bdf8a555586d799896e0aff9adf1ed4749ab120a.zip FreeBSD-src-bdf8a555586d799896e0aff9adf1ed4749ab120a.tar.gz |
Revert r227812 and r227808 per discussion
Reviewed by: many
Approved by: des
Diffstat (limited to 'lib/libc/string/strcoll.c')
-rw-r--r-- | lib/libc/string/strcoll.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/string/strcoll.c b/lib/libc/string/strcoll.c index 8add885..a918fca 100644 --- a/lib/libc/string/strcoll.c +++ b/lib/libc/string/strcoll.c @@ -40,7 +40,7 @@ __FBSDID("$FreeBSD$"); #include <stdio.h> int -strcoll_l(const char *s1, const char *s2, locale_t locale) +strcoll_l(const char *s, const char *s2, locale_t locale) { int len, len2, prim, prim2, sec, sec2, ret, ret2; const char *t, *t2; @@ -50,16 +50,16 @@ strcoll_l(const char *s1, const char *s2, locale_t locale) (struct xlocale_collate*)locale->components[XLC_COLLATE]; if (table->__collate_load_error) - return strcmp(s1, s2); + return strcmp(s, s2); len = len2 = 1; ret = ret2 = 0; if (table->__collate_substitute_nontrivial) { - t = tt = __collate_substitute(table, s1); + t = tt = __collate_substitute(table, s); t2 = tt2 = __collate_substitute(table, s2); } else { tt = tt2 = NULL; - t = s1; + t = s; t2 = s2; } while(*t && *t2) { @@ -95,8 +95,8 @@ strcoll_l(const char *s1, const char *s2, locale_t locale) } int -strcoll(const char *s1, const char *s2) +strcoll(const char *s, const char *s2) { - return strcoll_l(s1, s2, __get_locale()); + return strcoll_l(s, s2, __get_locale()); } |