summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tr/tr.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/tr/tr.c b/usr.bin/tr/tr.c
index d6c9698..bb76269 100644
--- a/usr.bin/tr/tr.c
+++ b/usr.bin/tr/tr.c
@@ -332,14 +332,10 @@ int
charcoll(const void *a, const void *b)
{
static char sa[2], sb[2];
- int r;
sa[0] = *(const int *)a;
sb[0] = *(const int *)b;
- r = strcoll(sa, sb);
- if (r == 0)
- r = *(const int *)a - *(const int *)b;
- return (r);
+ return (strcoll(sa, sb));
}
static void
OpenPOWER on IntegriCloud