diff options
Diffstat (limited to 'stdlib')
-rw-r--r-- | stdlib/a64l.c | 3 | ||||
-rw-r--r-- | stdlib/drand48_r.c | 4 | ||||
-rw-r--r-- | stdlib/getcontext.c | 3 | ||||
-rw-r--r-- | stdlib/getenv.c | 3 | ||||
-rw-r--r-- | stdlib/l64a.c | 3 | ||||
-rw-r--r-- | stdlib/llabs.c | 3 | ||||
-rw-r--r-- | stdlib/lldiv.c | 4 | ||||
-rw-r--r-- | stdlib/lrand48_r.c | 4 | ||||
-rw-r--r-- | stdlib/mrand48_r.c | 4 | ||||
-rw-r--r-- | stdlib/putenv.c | 3 | ||||
-rw-r--r-- | stdlib/random.c | 11 | ||||
-rw-r--r-- | stdlib/random_r.c | 12 | ||||
-rw-r--r-- | stdlib/secure-getenv.c | 3 | ||||
-rw-r--r-- | stdlib/setcontext.c | 3 | ||||
-rw-r--r-- | stdlib/setenv.c | 8 | ||||
-rw-r--r-- | stdlib/srand48.c | 3 | ||||
-rw-r--r-- | stdlib/srand48_r.c | 4 | ||||
-rw-r--r-- | stdlib/swapcontext.c | 4 | ||||
-rw-r--r-- | stdlib/system.c | 3 | ||||
-rw-r--r-- | stdlib/tst-strtod.c | 4 | ||||
-rw-r--r-- | stdlib/tst-strtol.c | 4 | ||||
-rw-r--r-- | stdlib/tst-strtoll.c | 4 |
22 files changed, 27 insertions, 70 deletions
diff --git a/stdlib/a64l.c b/stdlib/a64l.c index 156a4a0..5a88ff9 100644 --- a/stdlib/a64l.c +++ b/stdlib/a64l.c @@ -36,8 +36,7 @@ static const char a64l_table[TABLE_SIZE] = long int -a64l (string) - const char *string; +a64l (const char *string) { const char *ptr = string; unsigned long int result = 0ul; diff --git a/stdlib/drand48_r.c b/stdlib/drand48_r.c index 014af96..7e1772d 100644 --- a/stdlib/drand48_r.c +++ b/stdlib/drand48_r.c @@ -21,9 +21,7 @@ #include <stdlib.h> int -drand48_r (buffer, result) - struct drand48_data *buffer; - double *result; +drand48_r (struct drand48_data *buffer, double *result) { return __erand48_r (buffer->__x, buffer, result); } diff --git a/stdlib/getcontext.c b/stdlib/getcontext.c index c72e2e2..d36226c 100644 --- a/stdlib/getcontext.c +++ b/stdlib/getcontext.c @@ -19,8 +19,7 @@ #include <ucontext.h> int -getcontext (ucp) - ucontext_t *ucp; +getcontext (ucontext_t *ucp) { __set_errno (ENOSYS); return -1; diff --git a/stdlib/getenv.c b/stdlib/getenv.c index f0842fd..2e40053 100644 --- a/stdlib/getenv.c +++ b/stdlib/getenv.c @@ -30,8 +30,7 @@ two characters which we can access. By doing this we can avoid using the `strncmp' most of the time. */ char * -getenv (name) - const char *name; +getenv (const char *name) { size_t len = strlen (name); char **ep; diff --git a/stdlib/l64a.c b/stdlib/l64a.c index 379e1f8..bed8cd2 100644 --- a/stdlib/l64a.c +++ b/stdlib/l64a.c @@ -32,8 +32,7 @@ static const char conv_table[64] = }; char * -l64a (n) - long int n; +l64a (long int n) { unsigned long int m = (unsigned long int) n; static char result[7]; diff --git a/stdlib/llabs.c b/stdlib/llabs.c index 8f301d1..9c24183 100644 --- a/stdlib/llabs.c +++ b/stdlib/llabs.c @@ -23,8 +23,7 @@ /* Return the absolute value of I. */ long long int -llabs (i) - long long int i; +llabs (long long int i) { return i < 0 ? -i : i; } diff --git a/stdlib/lldiv.c b/stdlib/lldiv.c index 4a8a870..979abfe 100644 --- a/stdlib/lldiv.c +++ b/stdlib/lldiv.c @@ -21,9 +21,7 @@ /* Return the `lldiv_t' representation of NUMER over DENOM. */ lldiv_t -lldiv (numer, denom) - long long int numer; - long long int denom; +lldiv (long long int numer, long long int denom) { lldiv_t result; diff --git a/stdlib/lrand48_r.c b/stdlib/lrand48_r.c index 8d554c7..1e5eaa2 100644 --- a/stdlib/lrand48_r.c +++ b/stdlib/lrand48_r.c @@ -19,9 +19,7 @@ #include <stdlib.h> int -lrand48_r (buffer, result) - struct drand48_data *buffer; - long int *result; +lrand48_r (struct drand48_data *buffer, long int *result) { /* Be generous for the arguments, detect some errors. */ if (buffer == NULL) diff --git a/stdlib/mrand48_r.c b/stdlib/mrand48_r.c index f0f885c..a601926 100644 --- a/stdlib/mrand48_r.c +++ b/stdlib/mrand48_r.c @@ -19,9 +19,7 @@ #include <stdlib.h> int -mrand48_r (buffer, result) - struct drand48_data *buffer; - long int *result; +mrand48_r (struct drand48_data *buffer, long int *result) { /* Be generous for the arguments, detect some errors. */ if (buffer == NULL) diff --git a/stdlib/putenv.c b/stdlib/putenv.c index 829bea2..57d3432 100644 --- a/stdlib/putenv.c +++ b/stdlib/putenv.c @@ -49,8 +49,7 @@ extern char *alloca (); /* Put STRING, which is of the form "NAME=VALUE", in the environment. */ int -putenv (string) - char *string; +putenv (char *string) { const char *const name_end = strchr (string, '='); diff --git a/stdlib/random.c b/stdlib/random.c index 0c9e02e..137d2ba 100644 --- a/stdlib/random.c +++ b/stdlib/random.c @@ -205,8 +205,7 @@ __libc_lock_define_initialized (static, lock) introduced by the L.C.R.N.G. Note that the initialization of randtbl[] for default usage relies on values produced by this routine. */ void -__srandom (x) - unsigned int x; +__srandom (unsigned int x) { __libc_lock_lock (lock); (void) __srandom_r (x, &unsafe_state); @@ -228,10 +227,7 @@ weak_alias (__srandom, srand) setstate so that it doesn't matter when initstate is called. Returns a pointer to the old state. */ char * -__initstate (seed, arg_state, n) - unsigned int seed; - char *arg_state; - size_t n; +__initstate (unsigned int seed, char *arg_state, size_t n) { int32_t *ostate; int ret; @@ -258,8 +254,7 @@ weak_alias (__initstate, initstate) same state as the current state Returns a pointer to the old state information. */ char * -__setstate (arg_state) - char *arg_state; +__setstate (char *arg_state) { int32_t *ostate; diff --git a/stdlib/random_r.c b/stdlib/random_r.c index c4cd9a3..059f7af 100644 --- a/stdlib/random_r.c +++ b/stdlib/random_r.c @@ -158,9 +158,7 @@ static const struct random_poly_info random_poly_info = introduced by the L.C.R.N.G. Note that the initialization of randtbl[] for default usage relies on values produced by this routine. */ int -__srandom_r (seed, buf) - unsigned int seed; - struct random_data *buf; +__srandom_r (unsigned int seed, struct random_data *buf) { int type; int32_t *state; @@ -297,9 +295,7 @@ weak_alias (__initstate_r, initstate_r) same state as the current state Returns 0 on success, non-zero on failure. */ int -__setstate_r (arg_state, buf) - char *arg_state; - struct random_data *buf; +__setstate_r (char *arg_state, struct random_data *buf) { int32_t *new_state = 1 + (int32_t *) arg_state; int type; @@ -357,9 +353,7 @@ weak_alias (__setstate_r, setstate_r) pointer if the front one has wrapped. Returns a 31-bit random number. */ int -__random_r (buf, result) - struct random_data *buf; - int32_t *result; +__random_r (struct random_data *buf, int32_t *result) { int32_t *state; diff --git a/stdlib/secure-getenv.c b/stdlib/secure-getenv.c index 1b0e7d3..5c146f0 100644 --- a/stdlib/secure-getenv.c +++ b/stdlib/secure-getenv.c @@ -24,8 +24,7 @@ what values to accept from the environment. This special version checks for SUID or SGID first before doing any work. */ char * -__libc_secure_getenv (name) - const char *name; +__libc_secure_getenv (const char *name) { return __libc_enable_secure ? NULL : getenv (name); } diff --git a/stdlib/setcontext.c b/stdlib/setcontext.c index bb97710..b38571e 100644 --- a/stdlib/setcontext.c +++ b/stdlib/setcontext.c @@ -19,8 +19,7 @@ #include <ucontext.h> int -setcontext (ucp) - const ucontext_t *ucp; +setcontext (const ucontext_t *ucp) { __set_errno (ENOSYS); return -1; diff --git a/stdlib/setenv.c b/stdlib/setenv.c index dad7e71..d39eed3 100644 --- a/stdlib/setenv.c +++ b/stdlib/setenv.c @@ -255,10 +255,7 @@ __add_to_environ (name, value, combined, replace) } int -setenv (name, value, replace) - const char *name; - const char *value; - int replace; +setenv (const char *name, const char *value, int replace) { if (name == NULL || *name == '\0' || strchr (name, '=') != NULL) { @@ -270,8 +267,7 @@ setenv (name, value, replace) } int -unsetenv (name) - const char *name; +unsetenv (const char *name) { size_t len; char **ep; diff --git a/stdlib/srand48.c b/stdlib/srand48.c index 8be470b..0f11ff1 100644 --- a/stdlib/srand48.c +++ b/stdlib/srand48.c @@ -20,8 +20,7 @@ void -srand48 (seedval) - long seedval; +srand48 (long seedval) { (void) __srand48_r (seedval, &__libc_drand48_data); } diff --git a/stdlib/srand48_r.c b/stdlib/srand48_r.c index 03a9699..ef534c1 100644 --- a/stdlib/srand48_r.c +++ b/stdlib/srand48_r.c @@ -20,9 +20,7 @@ #include <limits.h> int -__srand48_r (seedval, buffer) - long int seedval; - struct drand48_data *buffer; +__srand48_r (long int seedval, struct drand48_data *buffer) { /* The standards say we only have 32 bits. */ if (sizeof (long int) > 4) diff --git a/stdlib/swapcontext.c b/stdlib/swapcontext.c index 988e4aa..94dc92c 100644 --- a/stdlib/swapcontext.c +++ b/stdlib/swapcontext.c @@ -19,9 +19,7 @@ #include <ucontext.h> int -swapcontext (oucp, ucp) - ucontext_t *oucp; - const ucontext_t *ucp; +swapcontext (ucontext_t *oucp, const ucontext_t *ucp) { __set_errno (ENOSYS); return -1; diff --git a/stdlib/system.c b/stdlib/system.c index f3dbe50..c4a4a90 100644 --- a/stdlib/system.c +++ b/stdlib/system.c @@ -21,8 +21,7 @@ /* Execute LINE as a shell command. */ int -__libc_system (line) - const char *line; +__libc_system (const char *line) { if (line == NULL) return 0; /* This indicates no command processor. */ diff --git a/stdlib/tst-strtod.c b/stdlib/tst-strtod.c index b985990..848e107 100644 --- a/stdlib/tst-strtod.c +++ b/stdlib/tst-strtod.c @@ -182,9 +182,7 @@ do_test (void) } static void -expand (dst, c) - char *dst; - int c; +expand (char *dst, int c) { if (isprint (c)) { diff --git a/stdlib/tst-strtol.c b/stdlib/tst-strtol.c index 448102a..5b80622 100644 --- a/stdlib/tst-strtol.c +++ b/stdlib/tst-strtol.c @@ -611,9 +611,7 @@ do_test (void) } static void -expand (dst, c) - char *dst; - int c; +expand (char *dst, int c) { if (isprint (c)) { diff --git a/stdlib/tst-strtoll.c b/stdlib/tst-strtoll.c index 93f1a56..de39ee3 100644 --- a/stdlib/tst-strtoll.c +++ b/stdlib/tst-strtoll.c @@ -386,9 +386,7 @@ do_test (void) } static void -expand (dst, c) - char *dst; - int c; +expand (char *dst, int c) { if (isprint (c)) { |