Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2016-11-28 12:18:49 +0300
committerCorinna Vinschen <corinna@vinschen.de>2016-11-28 12:18:49 +0300
commita43e81e2330204cb37ee50363b4e1d9c1ec5c19a (patch)
tree8bf40982f84701216a7422aafb56f22da739f27b
parent5fdd657b369aa2c08a8d1cfd12d5e23227d78c66 (diff)
Enforce no arguments for __get_current_locale/__get_C_locale
Remember: foo() != foo(void) Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
-rw-r--r--newlib/libc/locale/setlocale.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/locale/setlocale.h b/newlib/libc/locale/setlocale.h
index 0931fe5d2..85a38d586 100644
--- a/newlib/libc/locale/setlocale.h
+++ b/newlib/libc/locale/setlocale.h
@@ -225,7 +225,7 @@ __get_locale_r (struct _reent *r)
The current locale is either the locale of the current thread, if the
thread called uselocale, or the global locale if not. */
_ELIDABLE_INLINE struct __locale_t *
-__get_current_locale ()
+__get_current_locale (void)
{
return _REENT->_locale ?: __get_global_locale ();
}
@@ -233,7 +233,7 @@ __get_current_locale ()
/* Only access fixed "C" locale using this function. Fake for !_MB_CAPABLE
targets by returning ptr to globale locale. */
_ELIDABLE_INLINE struct __locale_t *
-__get_C_locale ()
+__get_C_locale (void)
{
#ifndef _MB_CAPABLE
return __get_global_locale ();