Blame SOURCES/glibc-rh1505492-prototypes-17.patch

c6d234
commit 80d9be8122d1fe181d2476b5dad9f4ce37204958
c6d234
Author: Joseph Myers <joseph@codesourcery.com>
c6d234
Date:   Tue Oct 20 21:27:22 2015 +0000
c6d234
c6d234
    Convert miscellaneous function definitions to prototype style.
c6d234
    
c6d234
    This patch converts various miscellaneous functions definitions in
c6d234
    glibc, found with grep and not covered by my previous scripted
c6d234
    conversions, from old-style K&R to prototype-style.  These changes
c6d234
    were made manually.  This is not necessarily exhaustive as formatting
c6d234
    variants may have prevented my grep from finding some such
c6d234
    definitions.
c6d234
    
c6d234
    Regarding the changes to files from GMP, they may originally have been
c6d234
    omitted when removing __STDC__ conditionals because of the files
c6d234
    coming from another package, but (a) GMP no longer has __STDC__
c6d234
    conditionals there anyway and (b) we don't try to keep these files
c6d234
    verbatim in sync with GMP (and there are licensing differences), so
c6d234
    making the change to them in glibc seems reasonable.
c6d234
    
c6d234
    Tested for x86_64 and x86 (testsuite - this patch affects files
c6d234
    containing assertions).
c6d234
    
c6d234
            * debug/fortify_fail.c (__fortify_fail): Convert to
c6d234
            prototype-style function definition.  Use internal_function.
c6d234
            * libio/genops.c (save_for_backup): Convert to prototype-style
c6d234
            function definition.
c6d234
            * libio/wgenops.c (save_for_wbackup): Likewise.
c6d234
            * login/grantpt.c (grantpt): Likewise.
c6d234
            * login/ptsname.c (ptsname): Likewise.
c6d234
            (__ptsname_r): Likewise.
c6d234
            * login/unlockpt.c (unlockpt): Likewise.
c6d234
            * mach/msgserver.c (__mach_msg_server): Likewise.
c6d234
            * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
c6d234
            (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
c6d234
            (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
c6d234
            * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
c6d234
            (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
c6d234
            * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
c6d234
            * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
c6d234
            Likewise.
c6d234
            * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
c6d234
            internal_function.
c6d234
            * nptl/pthread_atfork.c (__pthread_atfork): Convert to
c6d234
            prototype-style function definition.
c6d234
            * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
c6d234
            [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
c6d234
            (__pthread_create_2_0): Likewise.
c6d234
            * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
c6d234
            * nptl/register-atfork.c (__register_atfork): Likewise.
c6d234
            * posix/glob.c (glob): Likewise.
c6d234
            * posix/regcomp.c (re_comp): Likewise.
c6d234
            * posix/regexec.c (re_exec): Likewise.
c6d234
            * stdlib/add_n.c [__STDC__]: Make code unconditional.
c6d234
            [!__STDC__]: Remove conditional code.
c6d234
            * stdlib/cmp.c [__STDC__]: Make code unconditional.
c6d234
            [!__STDC__]: Remove conditional code.
c6d234
            * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
c6d234
            [!__STDC__]: Remove conditional code.
c6d234
            * stdlib/divrem.c [__STDC__]: Make code unconditional.
c6d234
            [!__STDC__]: Remove conditional code.
c6d234
            * stdlib/lshift.c [__STDC__]: Make code unconditional.
c6d234
            [!__STDC__]: Remove conditional code.
c6d234
            * stdlib/mod_1.c [__STDC__]: Make code unconditional.
c6d234
            [!__STDC__]: Remove conditional code.
c6d234
            * stdlib/mul.c [__STDC__]: Make code unconditional.
c6d234
            [!__STDC__]: Remove conditional code.
c6d234
            * stdlib/mul_n.c [__STDC__]: Make code unconditional.
c6d234
            [!__STDC__]: Remove conditional code.
c6d234
            * stdlib/rshift.c [__STDC__]: Make code unconditional.
c6d234
            [!__STDC__]: Remove conditional code.
c6d234
            * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
c6d234
            function definition.
c6d234
            (STRTOF): Likewise.
c6d234
            * stdlib/strtod_l.c (__STRTOF): Likewise.
c6d234
            * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
c6d234
            * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
c6d234
            (__strtol_l): Likewise.
c6d234
            * stdlib/sub_n.c [__STDC__]: Make code unconditional.
c6d234
            [!__STDC__]: Remove conditional code.
c6d234
            * string/memrchr.c (MEMRCHR): Convert to prototype-style function
c6d234
            definition.
c6d234
            * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
c6d234
            [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
c6d234
            type.
c6d234
            (__strcasecmp): Convert to prototype-style function definition.
c6d234
            * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
c6d234
            [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
c6d234
            type.
c6d234
            (__strncasecmp): Convert to prototype-style function definition.
c6d234
            * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
c6d234
            * sunrpc/xdr.c (xdr_union): Likewise.
c6d234
            * sunrpc/xdr_array.c (xdr_array): Likewise.
c6d234
            * sunrpc/xdr_ref.c (xdr_reference): Likewise.
c6d234
            * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
c6d234
            * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
c6d234
            Likewise.
c6d234
            * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
c6d234
            Likewise.
c6d234
            * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
c6d234
            * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
c6d234
            Likewise.
c6d234
            * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
c6d234
            (LOCALE_PARAM_PROTO): Likewise.
c6d234
            [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
c6d234
            argument type.
c6d234
            (ut_argument_spec): Remove macro.
c6d234
            (ut_argument_spec_iso): Rename to ut_argument_spec.
c6d234
            (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
c6d234
            prototype-style function definition.
c6d234
            (memcpy_uppcase): Likewise.
c6d234
            (__strftime_internal): Likewise.
c6d234
            (my_strftime): Likewise.
c6d234
            * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
c6d234
            (LOCALE_PARAM_DECL): Likewise.
c6d234
            [_LIBC] (LOCALE_PARAM): Include argument type.
c6d234
            (__strptime_internal): Convert to prototype-style function
c6d234
            definition.
c6d234
            (strptime): Likewise.
c6d234
            * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
c6d234
            [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
c6d234
            type.
c6d234
            (__wcscasecmp): Convert to prototype-style function definition.
c6d234
            * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
c6d234
            [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
c6d234
            type.
c6d234
            (__wcsncasecmp): Convert to prototype-style function definition.
c6d234
c6d234
Conflicts:
c6d234
	nptl/libc_pthread_init.c
c6d234
	  (Applied to nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c.)
c6d234
	nptl/register-atfork.c
c6d234
	  (Applied to nptl/sysdeps/unix/sysv/linux/register-atfork.c.)
c6d234
c6d234
diff --git a/debug/fortify_fail.c b/debug/fortify_fail.c
c6d234
index c5621ea6b5806603..d76ab3718e7814e4 100644
c6d234
--- a/debug/fortify_fail.c
c6d234
+++ b/debug/fortify_fail.c
c6d234
@@ -22,9 +22,8 @@
c6d234
 extern char **__libc_argv attribute_hidden;
c6d234
 
c6d234
 void
c6d234
-__attribute__ ((noreturn))
c6d234
-__fortify_fail (msg)
c6d234
-     const char *msg;
c6d234
+__attribute__ ((noreturn)) internal_function
c6d234
+__fortify_fail (const char *msg)
c6d234
 {
c6d234
   /* The loop is added only to keep gcc happy.  */
c6d234
   while (1)
c6d234
diff --git a/libio/genops.c b/libio/genops.c
c6d234
index 09a9c2eacf1fcaea..1362fd15a88130d8 100644
c6d234
--- a/libio/genops.c
c6d234
+++ b/libio/genops.c
c6d234
@@ -244,9 +244,7 @@ static int
c6d234
 #ifdef _LIBC
c6d234
 internal_function
c6d234
 #endif
c6d234
-save_for_backup (fp, end_p)
c6d234
-     _IO_FILE *fp;
c6d234
-     char *end_p;
c6d234
+save_for_backup (_IO_FILE *fp, char *end_p)
c6d234
 {
c6d234
   /* Append [_IO_read_base..end_p] to backup area. */
c6d234
   _IO_ssize_t least_mark = _IO_least_marker (fp, end_p);
c6d234
diff --git a/libio/wgenops.c b/libio/wgenops.c
c6d234
index 3f34bbc92d8746be..7ec7ae0c0c2c8976 100644
c6d234
--- a/libio/wgenops.c
c6d234
+++ b/libio/wgenops.c
c6d234
@@ -468,9 +468,7 @@ static int
c6d234
 #ifdef _LIBC
c6d234
 internal_function
c6d234
 #endif
c6d234
-save_for_wbackup (fp, end_p)
c6d234
-     _IO_FILE *fp;
c6d234
-     wchar_t *end_p;
c6d234
+save_for_wbackup (_IO_FILE *fp, wchar_t *end_p)
c6d234
 {
c6d234
   /* Append [_IO_read_base..end_p] to backup area. */
c6d234
   _IO_ssize_t least_mark = _IO_least_wmarker (fp, end_p);
c6d234
diff --git a/login/grantpt.c b/login/grantpt.c
c6d234
index fd7ee6c0bcf2f6b9..62d48b3c489b004f 100644
c6d234
--- a/login/grantpt.c
c6d234
+++ b/login/grantpt.c
c6d234
@@ -23,8 +23,7 @@
c6d234
    with the slave to the calling process, and set its group and
c6d234
    mode appropriately.  Note that this is an unprivileged operation. */
c6d234
 int
c6d234
-grantpt (fd)
c6d234
-     int fd __attribute__ ((unused));
c6d234
+grantpt (int fd __attribute__ ((unused)))
c6d234
 {
c6d234
   __set_errno (ENOSYS);
c6d234
   return -1;
c6d234
diff --git a/login/ptsname.c b/login/ptsname.c
c6d234
index d22ec4136257e1e1..5fe85a938558a0eb 100644
c6d234
--- a/login/ptsname.c
c6d234
+++ b/login/ptsname.c
c6d234
@@ -24,18 +24,16 @@
c6d234
    of the associated slave. */
c6d234
 
c6d234
 char *
c6d234
-ptsname (fd)
c6d234
-     int fd __attribute__ ((unused));
c6d234
+ptsname (int fd __attribute__ ((unused)))
c6d234
 {
c6d234
   __set_errno (ENOSYS);
c6d234
   return NULL;
c6d234
 }
c6d234
 
c6d234
 int
c6d234
-__ptsname_r (fd, buf, len)
c6d234
-     int fd __attribute__ ((unused));
c6d234
-     char *buf __attribute__ ((unused));
c6d234
-     size_t len __attribute__ ((unused));
c6d234
+__ptsname_r (int fd __attribute__ ((unused)),
c6d234
+	     char *buf __attribute__ ((unused)),
c6d234
+	     size_t len __attribute__ ((unused)))
c6d234
 {
c6d234
   __set_errno (ENOSYS);
c6d234
   return ENOSYS;
c6d234
diff --git a/login/unlockpt.c b/login/unlockpt.c
c6d234
index f00d88f9c1a5d8c4..14057d0fcdd4809c 100644
c6d234
--- a/login/unlockpt.c
c6d234
+++ b/login/unlockpt.c
c6d234
@@ -23,8 +23,7 @@
c6d234
    the slave can be opened.  This is to avoid a race between opening the
c6d234
    master and calling grantpt() to take possession of the slave. */
c6d234
 int
c6d234
-unlockpt (fd)
c6d234
-     int fd __attribute__ ((unused));
c6d234
+unlockpt (int fd __attribute__ ((unused)))
c6d234
 {
c6d234
   __set_errno (ENOSYS);
c6d234
   return -1;
c6d234
diff --git a/mach/msgserver.c b/mach/msgserver.c
c6d234
index b087e7263511b554..d1d90cdee476b2fc 100644
c6d234
--- a/mach/msgserver.c
c6d234
+++ b/mach/msgserver.c
c6d234
@@ -187,10 +187,10 @@ __mach_msg_server_timeout (boolean_t (*demux) (mach_msg_header_t *request,
c6d234
 weak_alias (__mach_msg_server_timeout, mach_msg_server_timeout)
c6d234
 
c6d234
 mach_msg_return_t
c6d234
-__mach_msg_server (demux, max_size, rcv_name)
c6d234
-     boolean_t (*demux) (mach_msg_header_t *in, mach_msg_header_t *out);
c6d234
-     mach_msg_size_t max_size;
c6d234
-     mach_port_t rcv_name;
c6d234
+__mach_msg_server (boolean_t (*demux) (mach_msg_header_t *in,
c6d234
+				       mach_msg_header_t *out),
c6d234
+		   mach_msg_size_t max_size,
c6d234
+		   mach_port_t rcv_name)
c6d234
 {
c6d234
   return __mach_msg_server_timeout (demux, max_size, rcv_name,
c6d234
 				    MACH_MSG_OPTION_NONE,
c6d234
diff --git a/misc/efgcvt.c b/misc/efgcvt.c
c6d234
index d7d15a1846ce1be4..e1304592dc8f36a9 100644
c6d234
--- a/misc/efgcvt.c
c6d234
+++ b/misc/efgcvt.c
c6d234
@@ -65,9 +65,8 @@ static char ECVT_BUFFER[MAXDIG];
c6d234
 libc_freeres_ptr (static char *FCVT_BUFPTR);
c6d234
 
c6d234
 char *
c6d234
-__APPEND (FUNC_PREFIX, fcvt) (value, ndigit, decpt, sign)
c6d234
-     FLOAT_TYPE value;
c6d234
-     int ndigit, *decpt, *sign;
c6d234
+__APPEND (FUNC_PREFIX, fcvt) (FLOAT_TYPE value, int ndigit, int *decpt,
c6d234
+			      int *sign)
c6d234
 {
c6d234
   if (FCVT_BUFPTR == NULL)
c6d234
     {
c6d234
@@ -88,9 +87,8 @@ __APPEND (FUNC_PREFIX, fcvt) (value, ndigit, decpt, sign)
c6d234
 
c6d234
 
c6d234
 char *
c6d234
-__APPEND (FUNC_PREFIX, ecvt) (value, ndigit, decpt, sign)
c6d234
-     FLOAT_TYPE value;
c6d234
-     int ndigit, *decpt, *sign;
c6d234
+__APPEND (FUNC_PREFIX, ecvt) (FLOAT_TYPE value, int ndigit, int *decpt,
c6d234
+			      int *sign)
c6d234
 {
c6d234
   (void) __APPEND (FUNC_PREFIX, ecvt_r) (value, ndigit, decpt, sign,
c6d234
 					 ECVT_BUFFER, MAXDIG);
c6d234
@@ -99,10 +97,7 @@ __APPEND (FUNC_PREFIX, ecvt) (value, ndigit, decpt, sign)
c6d234
 }
c6d234
 
c6d234
 char *
c6d234
-__APPEND (FUNC_PREFIX, gcvt) (value, ndigit, buf)
c6d234
-     FLOAT_TYPE value;
c6d234
-     int ndigit;
c6d234
-     char *buf;
c6d234
+__APPEND (FUNC_PREFIX, gcvt) (FLOAT_TYPE value, int ndigit, char *buf)
c6d234
 {
c6d234
   sprintf (buf, "%.*" FLOAT_FMT_FLAG "g", MIN (ndigit, NDIGIT_MAX), value);
c6d234
   return buf;
c6d234
diff --git a/misc/efgcvt_r.c b/misc/efgcvt_r.c
c6d234
index e9f32d673132279d..4cd040fadc008399 100644
c6d234
--- a/misc/efgcvt_r.c
c6d234
+++ b/misc/efgcvt_r.c
c6d234
@@ -72,11 +72,8 @@
c6d234
 
c6d234
 
c6d234
 int
c6d234
-__APPEND (FUNC_PREFIX, fcvt_r) (value, ndigit, decpt, sign, buf, len)
c6d234
-     FLOAT_TYPE value;
c6d234
-     int ndigit, *decpt, *sign;
c6d234
-     char *buf;
c6d234
-     size_t len;
c6d234
+__APPEND (FUNC_PREFIX, fcvt_r) (FLOAT_TYPE value, int ndigit, int *decpt,
c6d234
+				int *sign, char *buf, size_t len)
c6d234
 {
c6d234
   ssize_t n;
c6d234
   ssize_t i;
c6d234
@@ -170,11 +167,8 @@ __APPEND (FUNC_PREFIX, fcvt_r) (value, ndigit, decpt, sign, buf, len)
c6d234
 }
c6d234
 
c6d234
 int
c6d234
-__APPEND (FUNC_PREFIX, ecvt_r) (value, ndigit, decpt, sign, buf, len)
c6d234
-     FLOAT_TYPE value;
c6d234
-     int ndigit, *decpt, *sign;
c6d234
-     char *buf;
c6d234
-     size_t len;
c6d234
+__APPEND (FUNC_PREFIX, ecvt_r) (FLOAT_TYPE value, int ndigit, int *decpt,
c6d234
+				int *sign, char *buf, size_t len)
c6d234
 {
c6d234
   int exponent = 0;
c6d234
 
c6d234
diff --git a/nptl/cleanup_compat.c b/nptl/cleanup_compat.c
c6d234
index 67ff5965dd45de61..ba36268f8af78085 100644
c6d234
--- a/nptl/cleanup_compat.c
c6d234
+++ b/nptl/cleanup_compat.c
c6d234
@@ -21,10 +21,8 @@
c6d234
 
c6d234
 
c6d234
 void
c6d234
-_pthread_cleanup_push (buffer, routine, arg)
c6d234
-     struct _pthread_cleanup_buffer *buffer;
c6d234
-     void (*routine) (void *);
c6d234
-     void *arg;
c6d234
+_pthread_cleanup_push (struct _pthread_cleanup_buffer *buffer,
c6d234
+		       void (*routine) (void *), void *arg)
c6d234
 {
c6d234
   struct pthread *self = THREAD_SELF;
c6d234
 
c6d234
diff --git a/nptl/cleanup_defer_compat.c b/nptl/cleanup_defer_compat.c
c6d234
index e15723611c71d55a..96db28a26be0f7d4 100644
c6d234
--- a/nptl/cleanup_defer_compat.c
c6d234
+++ b/nptl/cleanup_defer_compat.c
c6d234
@@ -20,10 +20,8 @@
c6d234
 
c6d234
 
c6d234
 void
c6d234
-_pthread_cleanup_push_defer (buffer, routine, arg)
c6d234
-     struct _pthread_cleanup_buffer *buffer;
c6d234
-     void (*routine) (void *);
c6d234
-     void *arg;
c6d234
+_pthread_cleanup_push_defer (struct _pthread_cleanup_buffer *buffer,
c6d234
+			     void (*routine) (void *), void *arg)
c6d234
 {
c6d234
   struct pthread *self = THREAD_SELF;
c6d234
 
c6d234
diff --git a/nptl/pthread_atfork.c b/nptl/pthread_atfork.c
c6d234
index 7da2fd65d227931a..749f417c308c16cc 100644
c6d234
--- a/nptl/pthread_atfork.c
c6d234
+++ b/nptl/pthread_atfork.c
c6d234
@@ -48,10 +48,8 @@ int
c6d234
 /* Don't mark the compatibility function as hidden.  */
c6d234
 attribute_hidden
c6d234
 #endif
c6d234
-__pthread_atfork (prepare, parent, child)
c6d234
-     void (*prepare) (void);
c6d234
-     void (*parent) (void);
c6d234
-     void (*child) (void);
c6d234
+__pthread_atfork (void (*prepare) (void), void (*parent) (void),
c6d234
+		  void (*child) (void))
c6d234
 {
c6d234
   return __register_atfork (prepare, parent, child,
c6d234
 			    &__dso_handle == NULL ? NULL : __dso_handle);
c6d234
diff --git a/nptl/pthread_create.c b/nptl/pthread_create.c
c6d234
index 987469ba58e7bffa..7cd0003e57f5e759 100644
c6d234
--- a/nptl/pthread_create.c
c6d234
+++ b/nptl/pthread_create.c
c6d234
@@ -432,11 +432,8 @@ start_thread (void *arg)
c6d234
 
c6d234
 
c6d234
 int
c6d234
-__pthread_create_2_1 (newthread, attr, start_routine, arg)
c6d234
-     pthread_t *newthread;
c6d234
-     const pthread_attr_t *attr;
c6d234
-     void *(*start_routine) (void *);
c6d234
-     void *arg;
c6d234
+__pthread_create_2_1 (pthread_t *newthread, const pthread_attr_t *attr,
c6d234
+		      void *(*start_routine) (void *), void *arg)
c6d234
 {
c6d234
   STACK_VARIABLES;
c6d234
 
c6d234
@@ -560,11 +557,8 @@ versioned_symbol (libpthread, __pthread_create_2_1, pthread_create, GLIBC_2_1);
c6d234
 
c6d234
 #if SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)
c6d234
 int
c6d234
-__pthread_create_2_0 (newthread, attr, start_routine, arg)
c6d234
-     pthread_t *newthread;
c6d234
-     const pthread_attr_t *attr;
c6d234
-     void *(*start_routine) (void *);
c6d234
-     void *arg;
c6d234
+__pthread_create_2_0 (pthread_t *newthread, const pthread_attr_t *attr,
c6d234
+		      void *(*start_routine) (void *), void *arg)
c6d234
 {
c6d234
   /* The ATTR attribute is not really of type `pthread_attr_t *'.  It has
c6d234
      the old size and access to the new members might crash the program.
c6d234
diff --git a/nptl/pthread_key_create.c b/nptl/pthread_key_create.c
c6d234
index 96e21ce6d6674b34..2654e6cc8f73fa24 100644
c6d234
--- a/nptl/pthread_key_create.c
c6d234
+++ b/nptl/pthread_key_create.c
c6d234
@@ -22,9 +22,7 @@
c6d234
 
c6d234
 
c6d234
 int
c6d234
-__pthread_key_create (key, destr)
c6d234
-     pthread_key_t *key;
c6d234
-     void (*destr) (void *);
c6d234
+__pthread_key_create (pthread_key_t *key, void (*destr) (void *))
c6d234
 {
c6d234
   /* Find a slot in __pthread_kyes which is unused.  */
c6d234
   for (size_t cnt = 0; cnt < PTHREAD_KEYS_MAX; ++cnt)
c6d234
diff --git a/nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c b/nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c
c6d234
index adf0819f59c9d1f1..49bd2b47fe2d41cc 100644
c6d234
--- a/nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c
c6d234
+++ b/nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c
c6d234
@@ -35,10 +35,9 @@ extern int __libc_multiple_threads attribute_hidden;
c6d234
 
c6d234
 int *
c6d234
 #endif
c6d234
-__libc_pthread_init (ptr, reclaim, functions)
c6d234
-     unsigned long int *ptr;
c6d234
-     void (*reclaim) (void);
c6d234
-     const struct pthread_functions *functions;
c6d234
+internal_function
c6d234
+__libc_pthread_init (unsigned long int *ptr, void (*reclaim) (void),
c6d234
+		     const struct pthread_functions *functions)
c6d234
 {
c6d234
   /* Remember the pointer to the generation counter in libpthread.  */
c6d234
   __fork_generation_pointer = ptr;
c6d234
diff --git a/nptl/sysdeps/unix/sysv/linux/register-atfork.c b/nptl/sysdeps/unix/sysv/linux/register-atfork.c
c6d234
index 8b5557d89288d9b3..54b950f71c984ee2 100644
c6d234
--- a/nptl/sysdeps/unix/sysv/linux/register-atfork.c
c6d234
+++ b/nptl/sysdeps/unix/sysv/linux/register-atfork.c
c6d234
@@ -78,11 +78,8 @@ fork_handler_alloc (void)
c6d234
 
c6d234
 
c6d234
 int
c6d234
-__register_atfork (prepare, parent, child, dso_handle)
c6d234
-     void (*prepare) (void);
c6d234
-     void (*parent) (void);
c6d234
-     void (*child) (void);
c6d234
-     void *dso_handle;
c6d234
+__register_atfork (void (*prepare) (void), void (*parent) (void),
c6d234
+		   void (*child) (void), void *dso_handle)
c6d234
 {
c6d234
   /* Get the lock to not conflict with other allocations.  */
c6d234
   lll_lock (__fork_lock, LLL_PRIVATE);
c6d234
diff --git a/posix/glob.c b/posix/glob.c
c6d234
index e3d6fe0f15f7d9ce..01a1f2cba3d1d3da 100644
c6d234
--- a/posix/glob.c
c6d234
+++ b/posix/glob.c
c6d234
@@ -251,11 +251,8 @@ int
c6d234
 #ifdef GLOB_ATTRIBUTE
c6d234
 GLOB_ATTRIBUTE
c6d234
 #endif
c6d234
-glob (pattern, flags, errfunc, pglob)
c6d234
-     const char *pattern;
c6d234
-     int flags;
c6d234
-     int (*errfunc) (const char *, int);
c6d234
-     glob_t *pglob;
c6d234
+glob (const char *pattern, int flags, int (*errfunc) (const char *, int),
c6d234
+      glob_t *pglob)
c6d234
 {
c6d234
   const char *filename;
c6d234
   char *dirname = NULL;
c6d234
diff --git a/posix/regcomp.c b/posix/regcomp.c
c6d234
index 80359e58db504ed6..049522f6efbee0c2 100644
c6d234
--- a/posix/regcomp.c
c6d234
+++ b/posix/regcomp.c
c6d234
@@ -656,8 +656,7 @@ char *
c6d234
    regcomp/regexec above without link errors.  */
c6d234
 weak_function
c6d234
 # endif
c6d234
-re_comp (s)
c6d234
-     const char *s;
c6d234
+re_comp (const char *s)
c6d234
 {
c6d234
   reg_errcode_t ret;
c6d234
   char *fastmap;
c6d234
diff --git a/posix/regexec.c b/posix/regexec.c
c6d234
index f315149af88ac6bb..6ca865dc9a7d44d5 100644
c6d234
--- a/posix/regexec.c
c6d234
+++ b/posix/regexec.c
c6d234
@@ -586,8 +586,7 @@ int
c6d234
 # ifdef _LIBC
c6d234
 weak_function
c6d234
 # endif
c6d234
-re_exec (s)
c6d234
-     const char *s;
c6d234
+re_exec (const char *s)
c6d234
 {
c6d234
   return 0 == regexec (&re_comp_buf, s, 0, NULL, 0);
c6d234
 }
c6d234
diff --git a/stdlib/add_n.c b/stdlib/add_n.c
c6d234
index afb8e09306d7ecc7..fc5a6dbf71c70c7d 100644
c6d234
--- a/stdlib/add_n.c
c6d234
+++ b/stdlib/add_n.c
c6d234
@@ -22,15 +22,7 @@ along with the GNU MP Library; see the file COPYING.LIB.  If not, see
c6d234
 #include "gmp-impl.h"
c6d234
 
c6d234
 mp_limb_t
c6d234
-#if __STDC__
c6d234
 mpn_add_n (mp_ptr res_ptr, mp_srcptr s1_ptr, mp_srcptr s2_ptr, mp_size_t size)
c6d234
-#else
c6d234
-mpn_add_n (res_ptr, s1_ptr, s2_ptr, size)
c6d234
-     register mp_ptr res_ptr;
c6d234
-     register mp_srcptr s1_ptr;
c6d234
-     register mp_srcptr s2_ptr;
c6d234
-     mp_size_t size;
c6d234
-#endif
c6d234
 {
c6d234
   register mp_limb_t x, y, cy;
c6d234
   register mp_size_t j;
c6d234
diff --git a/stdlib/cmp.c b/stdlib/cmp.c
c6d234
index 003b9aa236cf9d6d..90a41bbf990e14ae 100644
c6d234
--- a/stdlib/cmp.c
c6d234
+++ b/stdlib/cmp.c
c6d234
@@ -27,14 +27,7 @@ along with the GNU MP Library; see the file COPYING.LIB.  If not, see
c6d234
    Return 1 if OP1 > OP2, 0 if they are equal, and -1 if OP1 < OP2.  */
c6d234
 
c6d234
 int
c6d234
-#if __STDC__
c6d234
 mpn_cmp (mp_srcptr op1_ptr, mp_srcptr op2_ptr, mp_size_t size)
c6d234
-#else
c6d234
-mpn_cmp (op1_ptr, op2_ptr, size)
c6d234
-     mp_srcptr op1_ptr;
c6d234
-     mp_srcptr op2_ptr;
c6d234
-     mp_size_t size;
c6d234
-#endif
c6d234
 {
c6d234
   mp_size_t i;
c6d234
   mp_limb_t op1_word, op2_word;
c6d234
diff --git a/stdlib/divmod_1.c b/stdlib/divmod_1.c
c6d234
index 4e6966bc913927a3..275dceff87094b8a 100644
c6d234
--- a/stdlib/divmod_1.c
c6d234
+++ b/stdlib/divmod_1.c
c6d234
@@ -40,17 +40,9 @@ along with the GNU MP Library; see the file COPYING.LIB.  If not, see
c6d234
    here (not udiv_qrnnd).  */
c6d234
 
c6d234
 mp_limb_t
c6d234
-#if __STDC__
c6d234
 mpn_divmod_1 (mp_ptr quot_ptr,
c6d234
 	      mp_srcptr dividend_ptr, mp_size_t dividend_size,
c6d234
 	      mp_limb_t divisor_limb)
c6d234
-#else
c6d234
-mpn_divmod_1 (quot_ptr, dividend_ptr, dividend_size, divisor_limb)
c6d234
-     mp_ptr quot_ptr;
c6d234
-     mp_srcptr dividend_ptr;
c6d234
-     mp_size_t dividend_size;
c6d234
-     mp_limb_t divisor_limb;
c6d234
-#endif
c6d234
 {
c6d234
   mp_size_t i;
c6d234
   mp_limb_t n1, n0, r;
c6d234
diff --git a/stdlib/divrem.c b/stdlib/divrem.c
c6d234
index c0abb4d9fbcfc0cf..0c5b2da7df0f6880 100644
c6d234
--- a/stdlib/divrem.c
c6d234
+++ b/stdlib/divrem.c
c6d234
@@ -40,19 +40,9 @@ along with the GNU MP Library; see the file COPYING.LIB.  If not, see
c6d234
    3. NSIZE >= DSIZE, even if QEXTRA_LIMBS is non-zero.  */
c6d234
 
c6d234
 mp_limb_t
c6d234
-#if __STDC__
c6d234
 mpn_divrem (mp_ptr qp, mp_size_t qextra_limbs,
c6d234
 	    mp_ptr np, mp_size_t nsize,
c6d234
 	    mp_srcptr dp, mp_size_t dsize)
c6d234
-#else
c6d234
-mpn_divrem (qp, qextra_limbs, np, nsize, dp, dsize)
c6d234
-     mp_ptr qp;
c6d234
-     mp_size_t qextra_limbs;
c6d234
-     mp_ptr np;
c6d234
-     mp_size_t nsize;
c6d234
-     mp_srcptr dp;
c6d234
-     mp_size_t dsize;
c6d234
-#endif
c6d234
 {
c6d234
   mp_limb_t most_significant_q_limb = 0;
c6d234
 
c6d234
diff --git a/stdlib/lshift.c b/stdlib/lshift.c
c6d234
index deb264177a5710f8..d2608e06e9113c4a 100644
c6d234
--- a/stdlib/lshift.c
c6d234
+++ b/stdlib/lshift.c
c6d234
@@ -31,17 +31,9 @@ along with the GNU MP Library; see the file COPYING.LIB.  If not, see
c6d234
 */
c6d234
 
c6d234
 mp_limb_t
c6d234
-#if __STDC__
c6d234
 mpn_lshift (register mp_ptr wp,
c6d234
 	    register mp_srcptr up, mp_size_t usize,
c6d234
 	    register unsigned int cnt)
c6d234
-#else
c6d234
-mpn_lshift (wp, up, usize, cnt)
c6d234
-     register mp_ptr wp;
c6d234
-     register mp_srcptr up;
c6d234
-     mp_size_t usize;
c6d234
-     register unsigned int cnt;
c6d234
-#endif
c6d234
 {
c6d234
   register mp_limb_t high_limb, low_limb;
c6d234
   register unsigned sh_1, sh_2;
c6d234
diff --git a/stdlib/mod_1.c b/stdlib/mod_1.c
c6d234
index d325a931adef007c..72d8ff8110e2c9e2 100644
c6d234
--- a/stdlib/mod_1.c
c6d234
+++ b/stdlib/mod_1.c
c6d234
@@ -37,15 +37,8 @@ along with the GNU MP Library; see the file COPYING.LIB.  If not, see
c6d234
    here (not udiv_qrnnd).  */
c6d234
 
c6d234
 mp_limb_t
c6d234
-#if __STDC__
c6d234
 mpn_mod_1 (mp_srcptr dividend_ptr, mp_size_t dividend_size,
c6d234
 	   mp_limb_t divisor_limb)
c6d234
-#else
c6d234
-mpn_mod_1 (dividend_ptr, dividend_size, divisor_limb)
c6d234
-     mp_srcptr dividend_ptr;
c6d234
-     mp_size_t dividend_size;
c6d234
-     mp_limb_t divisor_limb;
c6d234
-#endif
c6d234
 {
c6d234
   mp_size_t i;
c6d234
   mp_limb_t n1, n0, r;
c6d234
diff --git a/stdlib/mul.c b/stdlib/mul.c
c6d234
index cab3e2b134080f08..1cb9d73ef96a4559 100644
c6d234
--- a/stdlib/mul.c
c6d234
+++ b/stdlib/mul.c
c6d234
@@ -42,18 +42,9 @@ along with the GNU MP Library; see the file COPYING.LIB.  If not, see
c6d234
 #endif
c6d234
 
c6d234
 mp_limb_t
c6d234
-#if __STDC__
c6d234
 mpn_mul (mp_ptr prodp,
c6d234
 	 mp_srcptr up, mp_size_t usize,
c6d234
 	 mp_srcptr vp, mp_size_t vsize)
c6d234
-#else
c6d234
-mpn_mul (prodp, up, usize, vp, vsize)
c6d234
-     mp_ptr prodp;
c6d234
-     mp_srcptr up;
c6d234
-     mp_size_t usize;
c6d234
-     mp_srcptr vp;
c6d234
-     mp_size_t vsize;
c6d234
-#endif
c6d234
 {
c6d234
   mp_ptr prod_endp = prodp + usize + vsize - 1;
c6d234
   mp_limb_t cy;
c6d234
diff --git a/stdlib/mul_n.c b/stdlib/mul_n.c
c6d234
index 36876c2473e46295..ac2ab42dc887389e 100644
c6d234
--- a/stdlib/mul_n.c
c6d234
+++ b/stdlib/mul_n.c
c6d234
@@ -49,15 +49,7 @@ along with the GNU MP Library; see the file COPYING.LIB.  If not, see
c6d234
    algorithm below.  */
c6d234
 
c6d234
 void
c6d234
-#if __STDC__
c6d234
 impn_mul_n_basecase (mp_ptr prodp, mp_srcptr up, mp_srcptr vp, mp_size_t size)
c6d234
-#else
c6d234
-impn_mul_n_basecase (prodp, up, vp, size)
c6d234
-     mp_ptr prodp;
c6d234
-     mp_srcptr up;
c6d234
-     mp_srcptr vp;
c6d234
-     mp_size_t size;
c6d234
-#endif
c6d234
 {
c6d234
   mp_size_t i;
c6d234
   mp_limb_t cy_limb;
c6d234
@@ -100,17 +92,8 @@ impn_mul_n_basecase (prodp, up, vp, size)
c6d234
 }
c6d234
 
c6d234
 void
c6d234
-#if __STDC__
c6d234
 impn_mul_n (mp_ptr prodp,
c6d234
 	     mp_srcptr up, mp_srcptr vp, mp_size_t size, mp_ptr tspace)
c6d234
-#else
c6d234
-impn_mul_n (prodp, up, vp, size, tspace)
c6d234
-     mp_ptr prodp;
c6d234
-     mp_srcptr up;
c6d234
-     mp_srcptr vp;
c6d234
-     mp_size_t size;
c6d234
-     mp_ptr tspace;
c6d234
-#endif
c6d234
 {
c6d234
   if ((size & 1) != 0)
c6d234
     {
c6d234
@@ -219,14 +202,7 @@ impn_mul_n (prodp, up, vp, size, tspace)
c6d234
 }
c6d234
 
c6d234
 void
c6d234
-#if __STDC__
c6d234
 impn_sqr_n_basecase (mp_ptr prodp, mp_srcptr up, mp_size_t size)
c6d234
-#else
c6d234
-impn_sqr_n_basecase (prodp, up, size)
c6d234
-     mp_ptr prodp;
c6d234
-     mp_srcptr up;
c6d234
-     mp_size_t size;
c6d234
-#endif
c6d234
 {
c6d234
   mp_size_t i;
c6d234
   mp_limb_t cy_limb;
c6d234
@@ -269,16 +245,8 @@ impn_sqr_n_basecase (prodp, up, size)
c6d234
 }
c6d234
 
c6d234
 void
c6d234
-#if __STDC__
c6d234
 impn_sqr_n (mp_ptr prodp,
c6d234
 	     mp_srcptr up, mp_size_t size, mp_ptr tspace)
c6d234
-#else
c6d234
-impn_sqr_n (prodp, up, size, tspace)
c6d234
-     mp_ptr prodp;
c6d234
-     mp_srcptr up;
c6d234
-     mp_size_t size;
c6d234
-     mp_ptr tspace;
c6d234
-#endif
c6d234
 {
c6d234
   if ((size & 1) != 0)
c6d234
     {
c6d234
@@ -358,15 +326,7 @@ impn_sqr_n (prodp, up, size, tspace)
c6d234
 
c6d234
 /* This should be made into an inline function in gmp.h.  */
c6d234
 void
c6d234
-#if __STDC__
c6d234
 mpn_mul_n (mp_ptr prodp, mp_srcptr up, mp_srcptr vp, mp_size_t size)
c6d234
-#else
c6d234
-mpn_mul_n (prodp, up, vp, size)
c6d234
-     mp_ptr prodp;
c6d234
-     mp_srcptr up;
c6d234
-     mp_srcptr vp;
c6d234
-     mp_size_t size;
c6d234
-#endif
c6d234
 {
c6d234
   TMP_DECL (marker);
c6d234
   TMP_MARK (marker);
c6d234
diff --git a/stdlib/rshift.c b/stdlib/rshift.c
c6d234
index 13a12be35c673971..96562d474fca72a7 100644
c6d234
--- a/stdlib/rshift.c
c6d234
+++ b/stdlib/rshift.c
c6d234
@@ -31,17 +31,9 @@ along with the GNU MP Library; see the file COPYING.LIB.  If not, see
c6d234
 */
c6d234
 
c6d234
 mp_limb_t
c6d234
-#if __STDC__
c6d234
 mpn_rshift (register mp_ptr wp,
c6d234
 	    register mp_srcptr up, mp_size_t usize,
c6d234
 	    register unsigned int cnt)
c6d234
-#else
c6d234
-mpn_rshift (wp, up, usize, cnt)
c6d234
-     register mp_ptr wp;
c6d234
-     register mp_srcptr up;
c6d234
-     mp_size_t usize;
c6d234
-     register unsigned int cnt;
c6d234
-#endif
c6d234
 {
c6d234
   register mp_limb_t high_limb, low_limb;
c6d234
   register unsigned sh_1, sh_2;
c6d234
diff --git a/stdlib/strtod.c b/stdlib/strtod.c
c6d234
index 570780cdecbffde0..657d95de82169358 100644
c6d234
--- a/stdlib/strtod.c
c6d234
+++ b/stdlib/strtod.c
c6d234
@@ -46,10 +46,7 @@
c6d234
 
c6d234
 
c6d234
 FLOAT
c6d234
-INTERNAL (STRTOF) (nptr, endptr, group)
c6d234
-     const STRING_TYPE *nptr;
c6d234
-     STRING_TYPE **endptr;
c6d234
-     int group;
c6d234
+INTERNAL (STRTOF) (const STRING_TYPE *nptr, STRING_TYPE **endptr, int group)
c6d234
 {
c6d234
   return INTERNAL(STRTOF_L) (nptr, endptr, group, _NL_CURRENT_LOCALE);
c6d234
 }
c6d234
@@ -62,9 +59,7 @@ FLOAT
c6d234
 #ifdef weak_function
c6d234
 weak_function
c6d234
 #endif
c6d234
-STRTOF (nptr, endptr)
c6d234
-     const STRING_TYPE *nptr;
c6d234
-     STRING_TYPE **endptr;
c6d234
+STRTOF (const STRING_TYPE *nptr, STRING_TYPE **endptr)
c6d234
 {
c6d234
   return INTERNAL(STRTOF_L) (nptr, endptr, 0, _NL_CURRENT_LOCALE);
c6d234
 }
c6d234
diff --git a/stdlib/strtod_l.c b/stdlib/strtod_l.c
c6d234
index e5b30d443106ee91..bfbe9b4d96222823 100644
c6d234
--- a/stdlib/strtod_l.c
c6d234
+++ b/stdlib/strtod_l.c
c6d234
@@ -1738,10 +1738,7 @@ FLOAT
c6d234
 #ifdef weak_function
c6d234
 weak_function
c6d234
 #endif
c6d234
-__STRTOF (nptr, endptr, loc)
c6d234
-     const STRING_TYPE *nptr;
c6d234
-     STRING_TYPE **endptr;
c6d234
-     __locale_t loc;
c6d234
+__STRTOF (const STRING_TYPE *nptr, STRING_TYPE **endptr, __locale_t loc)
c6d234
 {
c6d234
   return ____STRTOF_INTERNAL (nptr, endptr, 0, loc);
c6d234
 }
c6d234
diff --git a/stdlib/strtol.c b/stdlib/strtol.c
c6d234
index 67d758c57973b5d5..68b81ef557a6274c 100644
c6d234
--- a/stdlib/strtol.c
c6d234
+++ b/stdlib/strtol.c
c6d234
@@ -89,11 +89,8 @@ extern INT INTERNAL (__strtol_l) (const STRING_TYPE *, STRING_TYPE **, int,
c6d234
 
c6d234
 
c6d234
 INT
c6d234
-INTERNAL (strtol) (nptr, endptr, base, group)
c6d234
-     const STRING_TYPE *nptr;
c6d234
-     STRING_TYPE **endptr;
c6d234
-     int base;
c6d234
-     int group;
c6d234
+INTERNAL (strtol) (const STRING_TYPE *nptr, STRING_TYPE **endptr,
c6d234
+		   int base, int group)
c6d234
 {
c6d234
   return INTERNAL (__strtol_l) (nptr, endptr, base, group, _NL_CURRENT_LOCALE);
c6d234
 }
c6d234
diff --git a/stdlib/strtol_l.c b/stdlib/strtol_l.c
c6d234
index 8174d22f060c2149..3e686acec1484118 100644
c6d234
--- a/stdlib/strtol_l.c
c6d234
+++ b/stdlib/strtol_l.c
c6d234
@@ -222,12 +222,8 @@ extern const unsigned char __strtol_ull_rem_tab[] attribute_hidden;
c6d234
    one converted is stored in *ENDPTR.  */
c6d234
 
c6d234
 INT
c6d234
-INTERNAL (__strtol_l) (nptr, endptr, base, group, loc)
c6d234
-     const STRING_TYPE *nptr;
c6d234
-     STRING_TYPE **endptr;
c6d234
-     int base;
c6d234
-     int group;
c6d234
-     __locale_t loc;
c6d234
+INTERNAL (__strtol_l) (const STRING_TYPE *nptr, STRING_TYPE **endptr,
c6d234
+		       int base, int group, __locale_t loc)
c6d234
 {
c6d234
   int negative;
c6d234
   unsigned LONG int cutoff;
c6d234
@@ -546,11 +542,8 @@ INT
c6d234
 #ifdef weak_function
c6d234
 weak_function
c6d234
 #endif
c6d234
-__strtol_l (nptr, endptr, base, loc)
c6d234
-     const STRING_TYPE *nptr;
c6d234
-     STRING_TYPE **endptr;
c6d234
-     int base;
c6d234
-     __locale_t loc;
c6d234
+__strtol_l (const STRING_TYPE *nptr, STRING_TYPE **endptr,
c6d234
+	    int base, __locale_t loc)
c6d234
 {
c6d234
   return INTERNAL (__strtol_l) (nptr, endptr, base, 0, loc);
c6d234
 }
c6d234
diff --git a/stdlib/sub_n.c b/stdlib/sub_n.c
c6d234
index 7e8ca2354554d062..db6928d82df8499d 100644
c6d234
--- a/stdlib/sub_n.c
c6d234
+++ b/stdlib/sub_n.c
c6d234
@@ -22,15 +22,7 @@ along with the GNU MP Library; see the file COPYING.LIB.  If not, see
c6d234
 #include "gmp-impl.h"
c6d234
 
c6d234
 mp_limb_t
c6d234
-#if __STDC__
c6d234
 mpn_sub_n (mp_ptr res_ptr, mp_srcptr s1_ptr, mp_srcptr s2_ptr, mp_size_t size)
c6d234
-#else
c6d234
-mpn_sub_n (res_ptr, s1_ptr, s2_ptr, size)
c6d234
-     register mp_ptr res_ptr;
c6d234
-     register mp_srcptr s1_ptr;
c6d234
-     register mp_srcptr s2_ptr;
c6d234
-     mp_size_t size;
c6d234
-#endif
c6d234
 {
c6d234
   register mp_limb_t x, y, cy;
c6d234
   register mp_size_t j;
c6d234
diff --git a/string/memrchr.c b/string/memrchr.c
c6d234
index 2826f1305626fb7c..79d19aa18ff5bd3e 100644
c6d234
--- a/string/memrchr.c
c6d234
+++ b/string/memrchr.c
c6d234
@@ -61,10 +61,7 @@ __memrchr
c6d234
 #else
c6d234
 MEMRCHR
c6d234
 #endif
c6d234
-     (s, c_in, n)
c6d234
-     const __ptr_t s;
c6d234
-     int c_in;
c6d234
-     size_t n;
c6d234
+     (const __ptr_t s, int c_in, size_t n)
c6d234
 {
c6d234
   const unsigned char *char_ptr;
c6d234
   const unsigned long int *longword_ptr;
c6d234
diff --git a/string/strcasecmp.c b/string/strcasecmp.c
c6d234
index e7a3c4481b27e954..73581256fc13cbb8 100644
c6d234
--- a/string/strcasecmp.c
c6d234
+++ b/string/strcasecmp.c
c6d234
@@ -35,21 +35,16 @@
c6d234
 #endif
c6d234
 
c6d234
 #ifdef USE_IN_EXTENDED_LOCALE_MODEL
c6d234
-# define LOCALE_PARAM , loc
c6d234
-# define LOCALE_PARAM_DECL __locale_t loc;
c6d234
+# define LOCALE_PARAM , __locale_t loc
c6d234
 #else
c6d234
 # define LOCALE_PARAM
c6d234
-# define LOCALE_PARAM_DECL
c6d234
 #endif
c6d234
 
c6d234
 /* Compare S1 and S2, ignoring case, returning less than, equal to or
c6d234
    greater than zero if S1 is lexicographically less than,
c6d234
    equal to or greater than S2.  */
c6d234
 int
c6d234
-__strcasecmp (s1, s2 LOCALE_PARAM)
c6d234
-     const char *s1;
c6d234
-     const char *s2;
c6d234
-     LOCALE_PARAM_DECL
c6d234
+__strcasecmp (const char *s1, const char *s2 LOCALE_PARAM)
c6d234
 {
c6d234
 #if defined _LIBC && !defined USE_IN_EXTENDED_LOCALE_MODEL
c6d234
   __locale_t loc = _NL_CURRENT_LOCALE;
c6d234
diff --git a/string/strncase.c b/string/strncase.c
c6d234
index 02fd51fd40a8ee94..fbd85f3a2329850d 100644
c6d234
--- a/string/strncase.c
c6d234
+++ b/string/strncase.c
c6d234
@@ -36,11 +36,9 @@
c6d234
 #endif
c6d234
 
c6d234
 #ifdef USE_IN_EXTENDED_LOCALE_MODEL
c6d234
-# define LOCALE_PARAM , loc
c6d234
-# define LOCALE_PARAM_DECL __locale_t loc;
c6d234
+# define LOCALE_PARAM , __locale_t loc
c6d234
 #else
c6d234
 # define LOCALE_PARAM
c6d234
-# define LOCALE_PARAM_DECL
c6d234
 #endif
c6d234
 
c6d234
 /* Compare no more than N characters of S1 and S2,
c6d234
@@ -48,11 +46,7 @@
c6d234
    greater than zero if S1 is lexicographically less
c6d234
    than, equal to or greater than S2.  */
c6d234
 int
c6d234
-__strncasecmp (s1, s2, n LOCALE_PARAM)
c6d234
-     const char *s1;
c6d234
-     const char *s2;
c6d234
-     size_t n;
c6d234
-     LOCALE_PARAM_DECL
c6d234
+__strncasecmp (const char *s1, const char *s2, size_t n LOCALE_PARAM)
c6d234
 {
c6d234
 #if defined _LIBC && !defined USE_IN_EXTENDED_LOCALE_MODEL
c6d234
   __locale_t loc = _NL_CURRENT_LOCALE;
c6d234
diff --git a/sunrpc/pm_getport.c b/sunrpc/pm_getport.c
c6d234
index 5c43acc0609d7377..f1fd462e181f7a8b 100644
c6d234
--- a/sunrpc/pm_getport.c
c6d234
+++ b/sunrpc/pm_getport.c
c6d234
@@ -82,14 +82,9 @@ __get_socket (struct sockaddr_in *saddr)
c6d234
  */
c6d234
 u_short
c6d234
 internal_function
c6d234
-__libc_rpc_getport (address, program, version, protocol, timeout_sec,
c6d234
-		    tottimeout_sec)
c6d234
-     struct sockaddr_in *address;
c6d234
-     u_long program;
c6d234
-     u_long version;
c6d234
-     u_int protocol;
c6d234
-     time_t timeout_sec;
c6d234
-     time_t tottimeout_sec;
c6d234
+__libc_rpc_getport (struct sockaddr_in *address, u_long program,
c6d234
+		    u_long version, u_int protocol, time_t timeout_sec,
c6d234
+		    time_t tottimeout_sec)
c6d234
 {
c6d234
   const struct timeval timeout = {timeout_sec, 0};
c6d234
   const struct timeval tottimeout = {tottimeout_sec, 0};
c6d234
diff --git a/sunrpc/xdr.c b/sunrpc/xdr.c
c6d234
index 9f1f7d417521044d..32dfa0aa1ab1e76a 100644
c6d234
--- a/sunrpc/xdr.c
c6d234
+++ b/sunrpc/xdr.c
c6d234
@@ -674,12 +674,15 @@ libc_hidden_nolink_sunrpc (xdr_netobj, GLIBC_2_0)
c6d234
  * If there is no specific or default routine an error is returned.
c6d234
  */
c6d234
 bool_t
c6d234
-xdr_union (xdrs, dscmp, unp, choices, dfault)
c6d234
-     XDR *xdrs;
c6d234
-     enum_t *dscmp;		/* enum to decide which arm to work on */
c6d234
-     char *unp;			/* the union itself */
c6d234
-     const struct xdr_discrim *choices;	/* [value, xdr proc] for each arm */
c6d234
-     xdrproc_t dfault;		/* default xdr routine */
c6d234
+xdr_union (XDR *xdrs,
c6d234
+	   /* enum to decide which arm to work on */
c6d234
+	   enum_t *dscmp,
c6d234
+	   /* the union itself */
c6d234
+	   char *unp,
c6d234
+	   /* [value, xdr proc] for each arm */
c6d234
+	   const struct xdr_discrim *choices,
c6d234
+	   /* default xdr routine */
c6d234
+	   xdrproc_t dfault)
c6d234
 {
c6d234
   enum_t dscm;
c6d234
 
c6d234
diff --git a/sunrpc/xdr_array.c b/sunrpc/xdr_array.c
c6d234
index fd9d1fb42f744844..99a1d5d24520572f 100644
c6d234
--- a/sunrpc/xdr_array.c
c6d234
+++ b/sunrpc/xdr_array.c
c6d234
@@ -53,13 +53,17 @@
c6d234
  * xdr procedure to call to handle each element of the array.
c6d234
  */
c6d234
 bool_t
c6d234
-xdr_array (xdrs, addrp, sizep, maxsize, elsize, elproc)
c6d234
-     XDR *xdrs;
c6d234
-     caddr_t *addrp;		/* array pointer */
c6d234
-     u_int *sizep;		/* number of elements */
c6d234
-     u_int maxsize;		/* max numberof elements */
c6d234
-     u_int elsize;		/* size in bytes of each element */
c6d234
-     xdrproc_t elproc;		/* xdr routine to handle each element */
c6d234
+xdr_array (XDR *xdrs,
c6d234
+	   /* array pointer */
c6d234
+	   caddr_t *addrp,
c6d234
+	   /* number of elements */
c6d234
+	   u_int *sizep,
c6d234
+	   /* max numberof elements */
c6d234
+	   u_int maxsize,
c6d234
+	   /* size in bytes of each element */
c6d234
+	   u_int elsize,
c6d234
+	   /* xdr routine to handle each element */
c6d234
+	   xdrproc_t elproc)
c6d234
 {
c6d234
   u_int i;
c6d234
   caddr_t target = *addrp;
c6d234
diff --git a/sunrpc/xdr_ref.c b/sunrpc/xdr_ref.c
c6d234
index a7d9264ed6be6fe2..2b7ebc8e11ca4dab 100644
c6d234
--- a/sunrpc/xdr_ref.c
c6d234
+++ b/sunrpc/xdr_ref.c
c6d234
@@ -54,11 +54,13 @@
c6d234
  * proc is the routine to handle the referenced structure.
c6d234
  */
c6d234
 bool_t
c6d234
-xdr_reference (xdrs, pp, size, proc)
c6d234
-     XDR *xdrs;
c6d234
-     caddr_t *pp;		/* the pointer to work on */
c6d234
-     u_int size;		/* size of the object pointed to */
c6d234
-     xdrproc_t proc;		/* xdr routine to handle the object */
c6d234
+xdr_reference (XDR *xdrs,
c6d234
+	       /* the pointer to work on */
c6d234
+	       caddr_t *pp,
c6d234
+	       /* size of the object pointed to */
c6d234
+	       u_int size,
c6d234
+	       /* xdr routine to handle the object */
c6d234
+	       xdrproc_t proc)
c6d234
 {
c6d234
   caddr_t loc = *pp;
c6d234
   bool_t stat;
c6d234
diff --git a/sysdeps/m68k/m680x0/fpu/s_atan.c b/sysdeps/m68k/m680x0/fpu/s_atan.c
c6d234
index c7bba83f30a4174d..acb6900d82d5c77d 100644
c6d234
--- a/sysdeps/m68k/m680x0/fpu/s_atan.c
c6d234
+++ b/sysdeps/m68k/m680x0/fpu/s_atan.c
c6d234
@@ -27,8 +27,7 @@
c6d234
 #define __CONCATX(a,b) __CONCAT(a,b)
c6d234
 
c6d234
 float_type
c6d234
-__CONCATX(__,FUNC) (x)
c6d234
-     float_type x;
c6d234
+__CONCATX(__,FUNC) (float_type x)
c6d234
 {
c6d234
   return __m81_u(__CONCATX(__,FUNC))(x);
c6d234
 }
c6d234
diff --git a/sysdeps/m68k/m680x0/fpu/s_isinf.c b/sysdeps/m68k/m680x0/fpu/s_isinf.c
c6d234
index 20872da536619d09..dfb9d99be8f8560c 100644
c6d234
--- a/sysdeps/m68k/m680x0/fpu/s_isinf.c
c6d234
+++ b/sysdeps/m68k/m680x0/fpu/s_isinf.c
c6d234
@@ -27,8 +27,7 @@
c6d234
 #define __CONCATX(a,b) __CONCAT(a,b)
c6d234
 
c6d234
 int
c6d234
-__CONCATX(__,FUNC) (x)
c6d234
-     float_type x;
c6d234
+__CONCATX(__,FUNC) (float_type x)
c6d234
 {
c6d234
   return __m81_u(__CONCATX(__,FUNC))(x);
c6d234
 }
c6d234
diff --git a/sysdeps/m68k/m680x0/fpu/s_scalbn.c b/sysdeps/m68k/m680x0/fpu/s_scalbn.c
c6d234
index ce1b92a22c2107df..8861f7a522cc00f4 100644
c6d234
--- a/sysdeps/m68k/m680x0/fpu/s_scalbn.c
c6d234
+++ b/sysdeps/m68k/m680x0/fpu/s_scalbn.c
c6d234
@@ -39,9 +39,7 @@
c6d234
 #define __CONCATX(a,b) __CONCAT(a,b)
c6d234
 
c6d234
 float_type
c6d234
-__CONCATX(__scalbn,suffix) (x, exp)
c6d234
-     float_type x;
c6d234
-     int exp;
c6d234
+__CONCATX(__scalbn,suffix) (float_type x, int exp)
c6d234
 {
c6d234
   return __m81_u(__CONCATX(__scalbn,suffix))(x, exp);
c6d234
 }
c6d234
diff --git a/sysdeps/m68k/m680x0/fpu/s_sincos.c b/sysdeps/m68k/m680x0/fpu/s_sincos.c
c6d234
index f7a40a3704204240..d2eb192363d6c907 100644
c6d234
--- a/sysdeps/m68k/m680x0/fpu/s_sincos.c
c6d234
+++ b/sysdeps/m68k/m680x0/fpu/s_sincos.c
c6d234
@@ -27,8 +27,7 @@
c6d234
 #define CONCATX(a,b) __CONCAT(a,b)
c6d234
 
c6d234
 void
c6d234
-CONCATX(__,FUNC) (x, sinx, cosx)
c6d234
-     float_type x, *sinx, *cosx;
c6d234
+CONCATX(__,FUNC) (float_type x, float_type *sinx, float_type *cosx)
c6d234
 {
c6d234
   __m81_u(CONCATX(__,FUNC))(x, sinx, cosx);
c6d234
 }
c6d234
diff --git a/sysdeps/unix/sysv/linux/i386/scandir64.c b/sysdeps/unix/sysv/linux/i386/scandir64.c
c6d234
index aca505a320b99473..485c84bee3e09aea 100644
c6d234
--- a/sysdeps/unix/sysv/linux/i386/scandir64.c
c6d234
+++ b/sysdeps/unix/sysv/linux/i386/scandir64.c
c6d234
@@ -39,12 +39,10 @@ versioned_symbol (libc, __scandir64, scandir64, GLIBC_2_2);
c6d234
 # include "olddirent.h"
c6d234
 
c6d234
 int
c6d234
-__old_scandir64 (dir, namelist, select, cmp)
c6d234
-     const char *dir;
c6d234
-     struct __old_dirent64 ***namelist;
c6d234
-     int (*select) (const struct __old_dirent64 *);
c6d234
-     int (*cmp) (const struct __old_dirent64 **,
c6d234
-		 const struct __old_dirent64 **);
c6d234
+__old_scandir64 (const char *dir, struct __old_dirent64 ***namelist,
c6d234
+		 int (*select) (const struct __old_dirent64 *),
c6d234
+		 int (*cmp) (const struct __old_dirent64 **,
c6d234
+			     const struct __old_dirent64 **))
c6d234
 {
c6d234
   DIR *dp = __opendir (dir);
c6d234
   struct __old_dirent64 **v = NULL;
c6d234
diff --git a/time/strftime_l.c b/time/strftime_l.c
c6d234
index 0f6ac83d34d43755..a1fe2714d221f4f3 100644
c6d234
--- a/time/strftime_l.c
c6d234
+++ b/time/strftime_l.c
c6d234
@@ -284,16 +284,12 @@ static const CHAR_T zeroes[16] = /* "0000000000000000" */
c6d234
 # undef _NL_CURRENT
c6d234
 # define _NL_CURRENT(category, item) \
c6d234
   (current->values[_NL_ITEM_INDEX (item)].string)
c6d234
-# define LOCALE_PARAM , loc
c6d234
+# define LOCALE_PARAM , __locale_t loc
c6d234
 # define LOCALE_ARG , loc
c6d234
-# define LOCALE_PARAM_DECL  __locale_t loc;
c6d234
-# define LOCALE_PARAM_PROTO , __locale_t loc
c6d234
 # define HELPER_LOCALE_ARG  , current
c6d234
 #else
c6d234
 # define LOCALE_PARAM
c6d234
-# define LOCALE_PARAM_PROTO
c6d234
 # define LOCALE_ARG
c6d234
-# define LOCALE_PARAM_DECL
c6d234
 # ifdef _LIBC
c6d234
 #  define HELPER_LOCALE_ARG , _NL_CURRENT_DATA (LC_TIME)
c6d234
 # else
c6d234
@@ -330,14 +326,10 @@ static const CHAR_T zeroes[16] = /* "0000000000000000" */
c6d234
 #define ISDIGIT(Ch) ((unsigned int) (Ch) - L_('0') <= 9)
c6d234
 
c6d234
 static CHAR_T *memcpy_lowcase (CHAR_T *dest, const CHAR_T *src,
c6d234
-			       size_t len LOCALE_PARAM_PROTO) __THROW;
c6d234
+			       size_t len LOCALE_PARAM) __THROW;
c6d234
 
c6d234
 static CHAR_T *
c6d234
-memcpy_lowcase (dest, src, len LOCALE_PARAM)
c6d234
-     CHAR_T *dest;
c6d234
-     const CHAR_T *src;
c6d234
-     size_t len;
c6d234
-     LOCALE_PARAM_DECL
c6d234
+memcpy_lowcase (CHAR_T *dest, const CHAR_T *src, size_t len LOCALE_PARAM)
c6d234
 {
c6d234
   while (len-- > 0)
c6d234
     dest[len] = TOLOWER ((UCHAR_T) src[len], loc);
c6d234
@@ -345,14 +337,10 @@ memcpy_lowcase (dest, src, len LOCALE_PARAM)
c6d234
 }
c6d234
 
c6d234
 static CHAR_T *memcpy_uppcase (CHAR_T *dest, const CHAR_T *src,
c6d234
-			       size_t len LOCALE_PARAM_PROTO) __THROW;
c6d234
+			       size_t len LOCALE_PARAM) __THROW;
c6d234
 
c6d234
 static CHAR_T *
c6d234
-memcpy_uppcase (dest, src, len LOCALE_PARAM)
c6d234
-     CHAR_T *dest;
c6d234
-     const CHAR_T *src;
c6d234
-     size_t len;
c6d234
-     LOCALE_PARAM_DECL
c6d234
+memcpy_uppcase (CHAR_T *dest, const CHAR_T *src, size_t len LOCALE_PARAM)
c6d234
 {
c6d234
   while (len-- > 0)
c6d234
     dest[len] = TOUPPER ((UCHAR_T) src[len], loc);
c6d234
@@ -429,8 +417,7 @@ static CHAR_T const month_name[][10] =
c6d234
 #ifdef emacs
c6d234
 # define my_strftime emacs_strftimeu
c6d234
 # define ut_argument , ut
c6d234
-# define ut_argument_spec int ut;
c6d234
-# define ut_argument_spec_iso , int ut
c6d234
+# define ut_argument_spec , int ut
c6d234
 #else
c6d234
 # ifdef COMPILE_WIDE
c6d234
 #  define my_strftime wcsftime
c6d234
@@ -441,15 +428,14 @@ static CHAR_T const month_name[][10] =
c6d234
 # endif
c6d234
 # define ut_argument
c6d234
 # define ut_argument_spec
c6d234
-# define ut_argument_spec_iso
c6d234
 /* We don't have this information in general.  */
c6d234
 # define ut 0
c6d234
 #endif
c6d234
 
c6d234
 static size_t __strftime_internal (CHAR_T *, size_t, const CHAR_T *,
c6d234
 				   const struct tm *, bool *
c6d234
-				   ut_argument_spec_iso
c6d234
-				   LOCALE_PARAM_PROTO) __THROW;
c6d234
+				   ut_argument_spec
c6d234
+				   LOCALE_PARAM) __THROW;
c6d234
 
c6d234
 /* Write information from TP into S according to the format
c6d234
    string FORMAT, writing no more that MAXSIZE characters
c6d234
@@ -459,13 +445,8 @@ static size_t __strftime_internal (CHAR_T *, size_t, const CHAR_T *,
c6d234
    written, use NULL for S and (size_t) UINT_MAX for MAXSIZE.  */
c6d234
 
c6d234
 size_t
c6d234
-my_strftime (s, maxsize, format, tp ut_argument LOCALE_PARAM)
c6d234
-     CHAR_T *s;
c6d234
-     size_t maxsize;
c6d234
-     const CHAR_T *format;
c6d234
-     const struct tm *tp;
c6d234
-     ut_argument_spec
c6d234
-     LOCALE_PARAM_DECL
c6d234
+my_strftime (CHAR_T *s, size_t maxsize, const CHAR_T *format,
c6d234
+	     const struct tm *tp ut_argument_spec LOCALE_PARAM)
c6d234
 {
c6d234
 #if !defined _LIBC && HAVE_TZNAME && HAVE_TZSET
c6d234
   /* Solaris 2.5 tzset sometimes modifies the storage returned by localtime.
c6d234
@@ -483,15 +464,9 @@ libc_hidden_def (my_strftime)
c6d234
 #endif
c6d234
 
c6d234
 static size_t
c6d234
-__strftime_internal (s, maxsize, format, tp, tzset_called ut_argument
c6d234
-		     LOCALE_PARAM)
c6d234
-      CHAR_T *s;
c6d234
-      size_t maxsize;
c6d234
-      const CHAR_T *format;
c6d234
-      const struct tm *tp;
c6d234
-      bool *tzset_called;
c6d234
-      ut_argument_spec
c6d234
-      LOCALE_PARAM_DECL
c6d234
+__strftime_internal (CHAR_T *s, size_t maxsize, const CHAR_T *format,
c6d234
+		     const struct tm *tp, bool *tzset_called
c6d234
+		     ut_argument_spec LOCALE_PARAM)
c6d234
 {
c6d234
 #if defined _LIBC && defined USE_IN_EXTENDED_LOCALE_MODEL
c6d234
   struct __locale_data *const current = loc->__locales[LC_TIME];
c6d234
diff --git a/time/strptime_l.c b/time/strptime_l.c
c6d234
index cb2b8faa6d740748..7f1efa13374c5eb4 100644
c6d234
--- a/time/strptime_l.c
c6d234
+++ b/time/strptime_l.c
c6d234
@@ -181,17 +181,13 @@ static const unsigned short int __mon_yday[2][13] =
c6d234
 # undef _NL_CURRENT_WORD
c6d234
 # define _NL_CURRENT_WORD(category, item) \
c6d234
   (current->values[_NL_ITEM_INDEX (item)].word)
c6d234
-# define LOCALE_PARAM , locale
c6d234
+# define LOCALE_PARAM , __locale_t locale
c6d234
 # define LOCALE_ARG , locale
c6d234
-# define LOCALE_PARAM_PROTO , __locale_t locale
c6d234
-# define LOCALE_PARAM_DECL __locale_t locale;
c6d234
 # define HELPER_LOCALE_ARG , current
c6d234
 # define ISSPACE(Ch) __isspace_l (Ch, locale)
c6d234
 #else
c6d234
 # define LOCALE_PARAM
c6d234
 # define LOCALE_ARG
c6d234
-# define LOCALE_PARAM_DECL
c6d234
-# define LOCALE_PARAM_PROTO
c6d234
 # define HELPER_LOCALE_ARG
c6d234
 # define ISSPACE(Ch) isspace (Ch)
c6d234
 #endif
c6d234
@@ -239,12 +235,8 @@ internal_function
c6d234
 #else
c6d234
 static char *
c6d234
 #endif
c6d234
-__strptime_internal (rp, fmt, tmp, statep LOCALE_PARAM)
c6d234
-     const char *rp;
c6d234
-     const char *fmt;
c6d234
-     struct tm *tmp;
c6d234
-     void *statep;
c6d234
-     LOCALE_PARAM_DECL
c6d234
+__strptime_internal (const char *rp, const char *fmt, struct tm *tmp,
c6d234
+		     void *statep LOCALE_PARAM)
c6d234
 {
c6d234
 #ifdef _LIBC
c6d234
   struct __locale_data *const current = locale->__locales[LC_TIME];
c6d234
@@ -1204,11 +1196,7 @@ __strptime_internal (rp, fmt, tmp, statep LOCALE_PARAM)
c6d234
 
c6d234
 
c6d234
 char *
c6d234
-strptime (buf, format, tm LOCALE_PARAM)
c6d234
-     const char *buf;
c6d234
-     const char *format;
c6d234
-     struct tm *tm;
c6d234
-     LOCALE_PARAM_DECL
c6d234
+strptime (const char *buf, const char *format, struct tm *tm LOCALE_PARAM)
c6d234
 {
c6d234
   return __strptime_internal (buf, format, tm, NULL LOCALE_ARG);
c6d234
 }
c6d234
diff --git a/wcsmbs/wcscasecmp.c b/wcsmbs/wcscasecmp.c
c6d234
index f970057f504999c8..4943bb5b9b410426 100644
c6d234
--- a/wcsmbs/wcscasecmp.c
c6d234
+++ b/wcsmbs/wcscasecmp.c
c6d234
@@ -35,21 +35,16 @@
c6d234
 #endif
c6d234
 
c6d234
 #ifdef USE_IN_EXTENDED_LOCALE_MODEL
c6d234
-# define LOCALE_PARAM , loc
c6d234
-# define LOCALE_PARAM_DECL __locale_t loc;
c6d234
+# define LOCALE_PARAM , __locale_t loc
c6d234
 #else
c6d234
 # define LOCALE_PARAM
c6d234
-# define LOCALE_PARAM_DECL
c6d234
 #endif
c6d234
 
c6d234
 /* Compare S1 and S2, ignoring case, returning less than, equal to or
c6d234
    greater than zero if S1 is lexicographically less than,
c6d234
    equal to or greater than S2.  */
c6d234
 int
c6d234
-__wcscasecmp (s1, s2 LOCALE_PARAM)
c6d234
-     const wchar_t *s1;
c6d234
-     const wchar_t *s2;
c6d234
-     LOCALE_PARAM_DECL
c6d234
+__wcscasecmp (const wchar_t *s1, const wchar_t *s2 LOCALE_PARAM)
c6d234
 {
c6d234
   wint_t c1, c2;
c6d234
 
c6d234
diff --git a/wcsmbs/wcsncase.c b/wcsmbs/wcsncase.c
c6d234
index 8b216b48184f793d..3e56ce5d25197a60 100644
c6d234
--- a/wcsmbs/wcsncase.c
c6d234
+++ b/wcsmbs/wcsncase.c
c6d234
@@ -37,11 +37,9 @@
c6d234
 #endif
c6d234
 
c6d234
 #ifdef USE_IN_EXTENDED_LOCALE_MODEL
c6d234
-# define LOCALE_PARAM , loc
c6d234
-# define LOCALE_PARAM_DECL __locale_t loc;
c6d234
+# define LOCALE_PARAM , __locale_t loc
c6d234
 #else
c6d234
 # define LOCALE_PARAM
c6d234
-# define LOCALE_PARAM_DECL
c6d234
 #endif
c6d234
 
c6d234
 /* Compare no more than N wide characters of S1 and S2,
c6d234
@@ -49,11 +47,7 @@
c6d234
    greater than zero if S1 is lexicographically less
c6d234
    than, equal to or greater than S2.  */
c6d234
 int
c6d234
-__wcsncasecmp (s1, s2, n LOCALE_PARAM)
c6d234
-     const wchar_t *s1;
c6d234
-     const wchar_t *s2;
c6d234
-     size_t n;
c6d234
-     LOCALE_PARAM_DECL
c6d234
+__wcsncasecmp (const wchar_t *s1, const wchar_t *s2, size_t n LOCALE_PARAM)
c6d234
 {
c6d234
   wint_t c1, c2;
c6d234