summaryrefslogtreecommitdiffstats
path: root/usr.bin/locale/locale.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/locale/locale.c')
-rw-r--r--usr.bin/locale/locale.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/usr.bin/locale/locale.c b/usr.bin/locale/locale.c
index 418acd7..b88cce9 100644
--- a/usr.bin/locale/locale.c
+++ b/usr.bin/locale/locale.c
@@ -311,6 +311,15 @@ list_locales(void)
}
/*
+ * qsort() helper function
+ */
+static int
+scmp(const void *s1, const void *s2)
+{
+ return strcmp(*(const char **)s1, *(const char **)s2);
+}
+
+/*
* Output information about all available charmaps
*
* XXX this function is doing a task in hackish way, i.e. by scaning
@@ -356,16 +365,6 @@ list_charmaps(void)
}
/*
- * qsort() helper function
- */
-static int
-scmp(const void *s1, const void *s2)
-{
- return strcmp(*(const char **)s1, *(const char **)s2);
-}
-
-
-/*
* Retrieve sorted list of system locales (or user locales, if PATH_LOCALE
* environment variable is set)
*/
OpenPOWER on IntegriCloud