From 0247d42e0ceb9bde3312636278cd0f0978ebdec1 Mon Sep 17 00:00:00 2001 From: phantom Date: Thu, 26 Jun 2003 11:05:56 +0000 Subject: Move scmp() to more appropriate location --- usr.bin/locale/locale.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'usr.bin') 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) */ -- cgit v1.1