aboutsummaryrefslogtreecommitdiffstats
path: root/nnn.c
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-12-22 01:19:32 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-12-22 01:19:32 +0530
commit59ae6c9e7f10706b686dc2778613af716fb4c553 (patch)
treee648d4c0a49a8a849024a7ea7551927c1b1f40a9 /nnn.c
parenta451e74465dd0ff0147ce0fa54514e7fc0fbad7c (diff)
downloadnnn-59ae6c9e7f10706b686dc2778613af716fb4c553.tar.gz
Replace xstricmp() with strcoll()
Diffstat (limited to 'nnn.c')
-rw-r--r--nnn.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/nnn.c b/nnn.c
index 157fc97..99630d0 100644
--- a/nnn.c
+++ b/nnn.c
@@ -632,6 +632,7 @@ xdiraccess(char *path)
return TRUE;
}
+#if 0
/*
* We assume none of the strings are NULL.
*
@@ -639,6 +640,8 @@ xdiraccess(char *path)
* E.g., the order '1, 10, 2' doesn't make sense to human eyes.
*
* If the absolute numeric values are same, we fallback to alphasort.
+ *
+ * NOTE: This API is replaced by strcoll().
*/
static int
xstricmp(char *s1, char *s2)
@@ -731,6 +734,7 @@ xstricmp(char *s1, char *s2)
return (int) (TOUPPER(*s1) - TOUPPER(*s2));
}
+#endif
/* Return the integer value of a char representing HEX */
static char
@@ -842,7 +846,7 @@ entrycmp(const void *va, const void *vb)
return -1;
}
- return xstricmp(pa->name, pb->name);
+ return strcoll(pa->name, pb->name);
}
/*