summaryrefslogtreecommitdiff
path: root/usr.bin/locale
diff options
context:
space:
mode:
authorAlexey Zelkin <phantom@FreeBSD.org>2003-06-26 11:05:56 +0000
committerAlexey Zelkin <phantom@FreeBSD.org>2003-06-26 11:05:56 +0000
commit2a805f63001c87581c7bff705ab3ab99058eca97 (patch)
treeda3e1bbb72329c2412caa314739895e154b9f979 /usr.bin/locale
parent980548ef84e6add2f57891837fcce24c75b9ea2e (diff)
downloadsrc-test-2a805f63001c87581c7bff705ab3ab99058eca97.tar.gz
src-test-2a805f63001c87581c7bff705ab3ab99058eca97.zip
Move scmp() to more appropriate location
Notes
Notes: svn path=/head/; revision=116877
Diffstat (limited to 'usr.bin/locale')
-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 418acd7a3184b..b88cce94bcf2d 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)
*/