summaryrefslogtreecommitdiff
path: root/firmware/common/strnatcmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/common/strnatcmp.c')
-rw-r--r--firmware/common/strnatcmp.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/firmware/common/strnatcmp.c b/firmware/common/strnatcmp.c
index 09c331f914..93a649358f 100644
--- a/firmware/common/strnatcmp.c
+++ b/firmware/common/strnatcmp.c
@@ -58,14 +58,6 @@ nat_isdigit(int a)
58 return isdigit(a); 58 return isdigit(a);
59} 59}
60 60
61#if 0
62static inline int
63nat_isspace(int a)
64{
65 return isspace(a);
66}
67#endif
68
69static inline int 61static inline int
70nat_unify_case(int a) 62nat_unify_case(int a)
71{ 63{
@@ -141,14 +133,7 @@ static int strnatcmp0(char const *a, char const *b, int fold_case)
141 while (1) { 133 while (1) {
142 ca = to_int(a[ai]); 134 ca = to_int(a[ai]);
143 cb = to_int(b[bi]); 135 cb = to_int(b[bi]);
144#if 0 136
145 /* skip over leading spaces or zeros */
146 while (nat_isspace(ca))
147 ca = to_int(a[++ai]);
148
149 while (nat_isspace(cb))
150 cb = to_int(b[++bi]);
151#endif
152 /* process run of digits */ 137 /* process run of digits */
153 if (nat_isdigit(ca) && nat_isdigit(cb)) { 138 if (nat_isdigit(ca) && nat_isdigit(cb)) {
154 fractional = (ca == '0' || cb == '0'); 139 fractional = (ca == '0' || cb == '0');