summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorphantom <phantom@FreeBSD.org>2003-06-26 11:05:56 +0000
committerphantom <phantom@FreeBSD.org>2003-06-26 11:05:56 +0000
commit0247d42e0ceb9bde3312636278cd0f0978ebdec1 (patch)
treeda3e1bbb72329c2412caa314739895e154b9f979 /usr.bin
parent5d0b1c27887c7c917f04d4414d1253999ff2e4d1 (diff)
downloadFreeBSD-src-0247d42e0ceb9bde3312636278cd0f0978ebdec1.zip
FreeBSD-src-0247d42e0ceb9bde3312636278cd0f0978ebdec1.tar.gz
Move scmp() to more appropriate location
Diffstat (limited to 'usr.bin')
-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