diff options
Diffstat (limited to 'newlib/libc/stdlib')
| -rw-r--r-- | newlib/libc/stdlib/envlock.c | 6 | ||||
| -rw-r--r-- | newlib/libc/stdlib/eprintf.c | 6 | ||||
| -rw-r--r-- | newlib/libc/stdlib/getsubopt.c | 4 | ||||
| -rw-r--r-- | newlib/libc/stdlib/mlock.c | 6 |
4 files changed, 6 insertions, 16 deletions
diff --git a/newlib/libc/stdlib/envlock.c b/newlib/libc/stdlib/envlock.c index 3afe30e..bd843af 100644 --- a/newlib/libc/stdlib/envlock.c +++ b/newlib/libc/stdlib/envlock.c @@ -36,8 +36,7 @@ __LOCK_INIT_RECURSIVE(static, __env_recursive_mutex); #endif void -__env_lock (ptr) - struct _reent *ptr; +__env_lock (struct _reent *ptr) { #ifndef __SINGLE_THREAD__ __lock_acquire_recursive (__env_recursive_mutex); @@ -45,8 +44,7 @@ __env_lock (ptr) } void -__env_unlock (ptr) - struct _reent *ptr; +__env_unlock (struct _reent *ptr) { #ifndef __SINGLE_THREAD__ __lock_release_recursive (__env_recursive_mutex); diff --git a/newlib/libc/stdlib/eprintf.c b/newlib/libc/stdlib/eprintf.c index 46cf810..9e4f5fd 100644 --- a/newlib/libc/stdlib/eprintf.c +++ b/newlib/libc/stdlib/eprintf.c @@ -14,11 +14,7 @@ #include <stdio.h> void -__eprintf (format, file, line, expression) - const char *format; - const char *file; - unsigned int line; - const char *expression; +__eprintf (const char *format, const char *file, unsigned int line, const char *expression) { (void) fiprintf (stderr, format, file, line, expression); abort (); diff --git a/newlib/libc/stdlib/getsubopt.c b/newlib/libc/stdlib/getsubopt.c index 298624d..4f3bb83 100644 --- a/newlib/libc/stdlib/getsubopt.c +++ b/newlib/libc/stdlib/getsubopt.c @@ -45,9 +45,7 @@ static char sccsid[] = "@(#)getsubopt.c 8.1 (Berkeley) 6/4/93"; char *suboptarg; int -getsubopt(optionp, tokens, valuep) - char **optionp, **valuep; - char * const *tokens; +getsubopt(char **optionp, char * const *tokens, char **valuep) { int cnt; char *p; diff --git a/newlib/libc/stdlib/mlock.c b/newlib/libc/stdlib/mlock.c index 23aa101..e5ac131 100644 --- a/newlib/libc/stdlib/mlock.c +++ b/newlib/libc/stdlib/mlock.c @@ -37,8 +37,7 @@ __LOCK_INIT_RECURSIVE(static, __malloc_recursive_mutex); #endif void -__malloc_lock (ptr) - struct _reent *ptr; +__malloc_lock (struct _reent *ptr) { #ifndef __SINGLE_THREAD__ __lock_acquire_recursive (__malloc_recursive_mutex); @@ -46,8 +45,7 @@ __malloc_lock (ptr) } void -__malloc_unlock (ptr) - struct _reent *ptr; +__malloc_unlock (struct _reent *ptr) { #ifndef __SINGLE_THREAD__ __lock_release_recursive (__malloc_recursive_mutex); |
