summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/setlocale.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2003-07-06 02:03:37 +0000
committerache <ache@FreeBSD.org>2003-07-06 02:03:37 +0000
commit92006f3cfc318b91ca31716fdbff39d97541d161 (patch)
treeeeca6050bcc54425602eb0a653635ce129563e45 /lib/libc/locale/setlocale.c
parent246ff0a3e7be313e20c1a4f425f0929d3af47a1a (diff)
downloadFreeBSD-src-92006f3cfc318b91ca31716fdbff39d97541d161.zip
FreeBSD-src-92006f3cfc318b91ca31716fdbff39d97541d161.tar.gz
Reorganize wrapper around setrunelocale() to mark it as deprecated
in FreeBSD 6
Diffstat (limited to 'lib/libc/locale/setlocale.c')
-rw-r--r--lib/libc/locale/setlocale.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/lib/libc/locale/setlocale.c b/lib/libc/locale/setlocale.c
index cea9326..70e7278 100644
--- a/lib/libc/locale/setlocale.c
+++ b/lib/libc/locale/setlocale.c
@@ -98,7 +98,6 @@ static char saved_categories[_LC_LAST][ENCODING_LEN + 1];
static char current_locale_string[_LC_LAST * (ENCODING_LEN + 1/*"/"*/ + 1)];
static char *currentlocale(void);
-static int wrap_setrunelocale(const char *);
static char *loadlocale(int);
char *
@@ -243,18 +242,6 @@ currentlocale()
return (current_locale_string);
}
-static int
-wrap_setrunelocale(const char *locale)
-{
- int ret = setrunelocale((char *)locale);
-
- if (ret != 0) {
- errno = ret;
- return (_LDP_ERROR);
- }
- return (_LDP_LOADED);
-}
-
static char *
loadlocale(category)
int category;
@@ -279,7 +266,7 @@ loadlocale(category)
switch (category) {
case LC_CTYPE:
- func = wrap_setrunelocale;
+ func = __wrap_setrunelocale;
break;
case LC_COLLATE:
func = __collate_load_tables;
OpenPOWER on IntegriCloud