summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2003-07-06 04:01:09 +0000
committerache <ache@FreeBSD.org>2003-07-06 04:01:09 +0000
commit96bd0cba77158533005561c54f06cc3dc0b2d52c (patch)
tree62f665246f2a13bb01b65ad32e85971081f3f632 /lib
parent0721598de290cba8b6600384f5349b552d4c7f4c (diff)
downloadFreeBSD-src-96bd0cba77158533005561c54f06cc3dc0b2d52c.zip
FreeBSD-src-96bd0cba77158533005561c54f06cc3dc0b2d52c.tar.gz
Add const to __setrunelocale prototype
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/locale/setrunelocale.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/locale/setrunelocale.c b/lib/libc/locale/setrunelocale.c
index 08f525c..df899d4 100644
--- a/lib/libc/locale/setrunelocale.c
+++ b/lib/libc/locale/setrunelocale.c
@@ -59,7 +59,7 @@ extern int _BIG5_init(_RuneLocale *);
extern int _MSKanji_init(_RuneLocale *);
extern _RuneLocale *_Read_RuneMagi(FILE *);
-static int __setrunelocale(char *);
+static int __setrunelocale(const char *);
__warn_references(setrunelocale, "warning: setrunelocale() is deprecated. See setrunelocale(3).");
int
@@ -78,11 +78,11 @@ setrunelocale(char *encoding)
if (ret != 0)
return (ret);
- return (__setrunelocale(encoding));
+ return (__setrunelocale((const char *)encoding));
}
static int
-__setrunelocale(char *encoding)
+__setrunelocale(const char *encoding)
{
FILE *fp;
char name[PATH_MAX];
@@ -166,7 +166,7 @@ __setrunelocale(char *encoding)
int
__wrap_setrunelocale(const char *locale)
{
- int ret = __setrunelocale((char *)locale);
+ int ret = __setrunelocale(locale);
if (ret != 0) {
errno = ret;
OpenPOWER on IntegriCloud