public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Enforce no arguments for __get_current_locale/__get_C_locale
@ 2016-11-28 9:19 Corinna Vinschen
0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2016-11-28 9:19 UTC (permalink / raw)
To: newlib-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=a43e81e2330204cb37ee50363b4e1d9c1ec5c19a
commit a43e81e2330204cb37ee50363b4e1d9c1ec5c19a
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Mon Nov 28 10:18:49 2016 +0100
Enforce no arguments for __get_current_locale/__get_C_locale
Remember: foo() != foo(void)
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
newlib/libc/locale/setlocale.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/newlib/libc/locale/setlocale.h b/newlib/libc/locale/setlocale.h
index 0931fe5..85a38d5 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 ();
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-11-28 9:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-28 9:19 [newlib-cygwin] Enforce no arguments for __get_current_locale/__get_C_locale Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).