diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-20 08:47:51 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-20 08:47:51 +0000 |
commit | 11975abb2c891e563dbed51a52c050ea0b05b8a4 (patch) | |
tree | d99ca21591a2528ac4546b64c8f703b0fc6dac34 /libc/stdlib | |
parent | 6a9087f96b69f1b8cea5cee76a27784d2b131cd2 (diff) |
- remove old-style definitions. No object-code changes.
Diffstat (limited to 'libc/stdlib')
-rw-r--r-- | libc/stdlib/a64l.c | 4 | ||||
-rw-r--r-- | libc/stdlib/drand48-iter.c | 6 | ||||
-rw-r--r-- | libc/stdlib/drand48.c | 3 | ||||
-rw-r--r-- | libc/stdlib/l64a.c | 4 |
4 files changed, 4 insertions, 13 deletions
diff --git a/libc/stdlib/a64l.c b/libc/stdlib/a64l.c index 23faf2744..d09dbf464 100644 --- a/libc/stdlib/a64l.c +++ b/libc/stdlib/a64l.c @@ -36,9 +36,7 @@ static const char a64l_table[TABLE_SIZE] = }; -long int -a64l (string) - const char *string; +long int a64l (const char *string) { const char *ptr = string; unsigned long int result = 0ul; diff --git a/libc/stdlib/drand48-iter.c b/libc/stdlib/drand48-iter.c index 0e674a3ce..abfe53559 100644 --- a/libc/stdlib/drand48-iter.c +++ b/libc/stdlib/drand48-iter.c @@ -26,12 +26,8 @@ /* Global state for non-reentrant functions. */ struct drand48_data __libc_drand48_data attribute_hidden; - int __drand48_iterate (unsigned short int xsubi[3], struct drand48_data *buffer) attribute_hidden; -int -__drand48_iterate (xsubi, buffer) - unsigned short int xsubi[3]; - struct drand48_data *buffer; +int __drand48_iterate (unsigned short int xsubi[3], struct drand48_data *buffer) { uint64_t X; uint64_t result; diff --git a/libc/stdlib/drand48.c b/libc/stdlib/drand48.c index ab6239d75..f96947cb2 100644 --- a/libc/stdlib/drand48.c +++ b/libc/stdlib/drand48.c @@ -24,8 +24,7 @@ libc_hidden_proto(erand48_r) /* Global state for non-reentrant functions. Defined in drand48-iter.c. */ extern struct drand48_data __libc_drand48_data attribute_hidden; -double -drand48 () +double drand48 (void) { double result; diff --git a/libc/stdlib/l64a.c b/libc/stdlib/l64a.c index f3a249fed..a8b2d551e 100644 --- a/libc/stdlib/l64a.c +++ b/libc/stdlib/l64a.c @@ -32,9 +32,7 @@ static const char conv_table[64] = 's', 't', 'u', 'v', 'w', 'x', 'y', 'z' }; -char * -l64a (n) - long int n; +char * l64a (long int n) { unsigned long int m = (unsigned long int) n; static char result[7]; |