From 243a44d2c0eef202e52b7154a70c245261f6f5f4 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Sun, 21 Jan 2007 22:47:22 +0000 Subject: [PATCH] Yet another fix for GCC4.2 svn path=/trunk/; revision=25573 --- reactos/lib/crt/locale/locale.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/lib/crt/locale/locale.c b/reactos/lib/crt/locale/locale.c index 27e675a3a70..253fcfc4c65 100644 --- a/reactos/lib/crt/locale/locale.c +++ b/reactos/lib/crt/locale/locale.c @@ -16,7 +16,7 @@ unsigned int __unguarded_readlc_active; int _current_category; /* used by setlocale */ const char *_current_locale; -int parse_locale(char *locale, char *lang, char *country, char *code_page); +int parse_locale(const char *locale, char *lang, char *country, char *code_page); /* * @unimplemented @@ -27,7 +27,7 @@ char *setlocale(int category, const char *locale) char country[100]; char code_page[100]; if (NULL != locale) { - parse_locale((char *)locale,lang,country,code_page); + parse_locale(locale,lang,country,code_page); } //printf("%s %s %s %s\n",locale,lang,country,code_page); @@ -63,7 +63,7 @@ locale "lang[_country[.code_page]]" | NULL */ -int parse_locale(char *locale, char *lang, char *country, char *code_page) +int parse_locale(const char *locale, char *lang, char *country, char *code_page) { while ( *locale != 0 && *locale != '.' && *locale != '_' ) {