diff options
author | ache <ache@FreeBSD.org> | 1996-12-28 03:46:27 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1996-12-28 03:46:27 +0000 |
commit | a7a2d1e16cb18addc021ccd8c9c0a100caf4f49b (patch) | |
tree | 687d1d552b412023ae17a54a245a1191affe6ef7 /bin | |
parent | 55a64e6dcba57333e1a73386d248936c39fdb10a (diff) | |
download | FreeBSD-src-a7a2d1e16cb18addc021ccd8c9c0a100caf4f49b.zip FreeBSD-src-a7a2d1e16cb18addc021ccd8c9c0a100caf4f49b.tar.gz |
Use strcoll instead of strcmp for file names comparation
Should be in 2.2
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ls/cmp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ls/cmp.c b/bin/ls/cmp.c index db72a1d..ec30ff5 100644 --- a/bin/ls/cmp.c +++ b/bin/ls/cmp.c @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: cmp.c,v 1.2 1994/09/24 02:55:52 davidg Exp $ + * $Id: cmp.c,v 1.3 1996/12/14 06:03:27 steve Exp $ */ #ifndef lint @@ -53,14 +53,14 @@ int namecmp(a, b) const FTSENT *a, *b; { - return (strcmp(a->fts_name, b->fts_name)); + return (strcoll(a->fts_name, b->fts_name)); } int revnamecmp(a, b) const FTSENT *a, *b; { - return (strcmp(b->fts_name, a->fts_name)); + return (strcoll(b->fts_name, a->fts_name)); } int |