summaryrefslogtreecommitdiffstats
path: root/newlib/libc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2016-08-16 16:23:51 +0200
committerCorinna Vinschen <corinna@vinschen.de>2016-08-16 16:23:51 +0200
commit1c25a777b3b5b5095bc2f52082e49e1fee28bb13 (patch)
tree35fd4e8d34335b932d5f5c683554601477d9c89f /newlib/libc
parent625a8a3f62b0f7d496fc4bdf71d742ac122eda45 (diff)
downloadcygnal-1c25a777b3b5b5095bc2f52082e49e1fee28bb13.tar.gz
cygnal-1c25a777b3b5b5095bc2f52082e49e1fee28bb13.tar.bz2
cygnal-1c25a777b3b5b5095bc2f52082e49e1fee28bb13.zip
Actually return pointers in locale categroy accessor functions
Commit 6e7ce50 was broken. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/locale/setlocale.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/newlib/libc/locale/setlocale.h b/newlib/libc/locale/setlocale.h
index 7aa676a5b..4275750ec 100644
--- a/newlib/libc/locale/setlocale.h
+++ b/newlib/libc/locale/setlocale.h
@@ -326,49 +326,49 @@ __get_current_messages_locale (void)
_ELIDABLE_INLINE const struct lc_monetary_T *
__get_monetary_locale (struct __locale_t *locale)
{
- return _C_monetary_locale;
+ return &_C_monetary_locale;
}
_ELIDABLE_INLINE const struct lc_monetary_T *
__get_current_monetary_locale (void)
{
- return _C_monetary_locale;
+ return &_C_monetary_locale;
}
_ELIDABLE_INLINE const struct lc_numeric_T *
__get_numeric_locale (struct __locale_t *locale)
{
- return _C_numeric_locale;
+ return &_C_numeric_locale;
}
_ELIDABLE_INLINE const struct lc_numeric_T *
__get_current_numeric_locale (void)
{
- return _C_numeric_locale;
+ return &_C_numeric_locale;
}
_ELIDABLE_INLINE const struct lc_time_T *
__get_time_locale (struct __locale_t *locale)
{
- return _C_time_locale;
+ return &_C_time_locale;
}
_ELIDABLE_INLINE const struct lc_time_T *
__get_current_time_locale (void)
{
- return _C_time_locale;
+ return &_C_time_locale;
}
_ELIDABLE_INLINE const struct lc_messages_T *
__get_messages_locale (struct __locale_t *locale)
{
- return _C_messages_locale;
+ return &_C_messages_locale;
}
_ELIDABLE_INLINE const struct lc_messages_T *
__get_current_messages_locale (void)
{
- return _C_messages_locale;
+ return &_C_messages_locale;
}
#endif /* !__HAVE_LOCALE_INFO__ */