summaryrefslogtreecommitdiff
path: root/libc/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdlib')
-rw-r--r--libc/stdlib/a64l.c4
-rw-r--r--libc/stdlib/drand48-iter.c6
-rw-r--r--libc/stdlib/drand48.c3
-rw-r--r--libc/stdlib/l64a.c4
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];