aboutsummaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/drand48-iter.c4
-rw-r--r--stdlib/erand48.c3
-rw-r--r--stdlib/erand48_r.c6
-rw-r--r--stdlib/jrand48.c3
-rw-r--r--stdlib/jrand48_r.c6
-rw-r--r--stdlib/lcong48.c3
-rw-r--r--stdlib/lcong48_r.c4
-rw-r--r--stdlib/nrand48.c3
-rw-r--r--stdlib/nrand48_r.c6
-rw-r--r--stdlib/seed48.c3
-rw-r--r--stdlib/seed48_r.c4
11 files changed, 14 insertions, 31 deletions
diff --git a/stdlib/drand48-iter.c b/stdlib/drand48-iter.c
index 8983776..90ec1a1 100644
--- a/stdlib/drand48-iter.c
+++ b/stdlib/drand48-iter.c
@@ -27,9 +27,7 @@ struct drand48_data __libc_drand48_data;
int
-__drand48_iterate (xsubi, buffer)
- unsigned short int xsubi[3];
- struct drand48_data *buffer;
+__drand48_iterate (unsigned short int xsubi[3], struct drand48_data *buffer)
{
uint64_t X;
uint64_t result;
diff --git a/stdlib/erand48.c b/stdlib/erand48.c
index 66af903..5655c72 100644
--- a/stdlib/erand48.c
+++ b/stdlib/erand48.c
@@ -20,8 +20,7 @@
double
-erand48 (xsubi)
- unsigned short int xsubi[3];
+erand48 (unsigned short int xsubi[3])
{
double result;
diff --git a/stdlib/erand48_r.c b/stdlib/erand48_r.c
index ee554a5..61ed852 100644
--- a/stdlib/erand48_r.c
+++ b/stdlib/erand48_r.c
@@ -22,10 +22,8 @@
int
-__erand48_r (xsubi, buffer, result)
- unsigned short int xsubi[3];
- struct drand48_data *buffer;
- double *result;
+__erand48_r (unsigned short int xsubi[3], struct drand48_data *buffer,
+ double *result)
{
union ieee754_double temp;
diff --git a/stdlib/jrand48.c b/stdlib/jrand48.c
index 63683d7..d53224c 100644
--- a/stdlib/jrand48.c
+++ b/stdlib/jrand48.c
@@ -20,8 +20,7 @@
long int
-jrand48 (xsubi)
- unsigned short int xsubi[3];
+jrand48 (unsigned short int xsubi[3])
{
long int result;
diff --git a/stdlib/jrand48_r.c b/stdlib/jrand48_r.c
index 6dfd8ae..2da4c52 100644
--- a/stdlib/jrand48_r.c
+++ b/stdlib/jrand48_r.c
@@ -19,10 +19,8 @@
#include <stdlib.h>
int
-__jrand48_r (xsubi, buffer, result)
- unsigned short int xsubi[3];
- struct drand48_data *buffer;
- long int *result;
+__jrand48_r (unsigned short int xsubi[3], struct drand48_data *buffer,
+ long int *result)
{
/* Compute next state. */
if (__drand48_iterate (xsubi, buffer) < 0)
diff --git a/stdlib/lcong48.c b/stdlib/lcong48.c
index 14d2970..be0f024 100644
--- a/stdlib/lcong48.c
+++ b/stdlib/lcong48.c
@@ -20,8 +20,7 @@
void
-lcong48 (param)
- unsigned short int param[7];
+lcong48 (unsigned short int param[7])
{
(void) __lcong48_r (param, &__libc_drand48_data);
}
diff --git a/stdlib/lcong48_r.c b/stdlib/lcong48_r.c
index 5accc08..e3e82e8 100644
--- a/stdlib/lcong48_r.c
+++ b/stdlib/lcong48_r.c
@@ -22,9 +22,7 @@
#include <limits.h>
int
-__lcong48_r (param, buffer)
- unsigned short int param[7];
- struct drand48_data *buffer;
+__lcong48_r (unsigned short int param[7], struct drand48_data *buffer)
{
/* Store the given values. */
memcpy (buffer->__x, &param[0], sizeof (buffer->__x));
diff --git a/stdlib/nrand48.c b/stdlib/nrand48.c
index a13b3ba..e15f0c0 100644
--- a/stdlib/nrand48.c
+++ b/stdlib/nrand48.c
@@ -20,8 +20,7 @@
long int
-nrand48 (xsubi)
- unsigned short int xsubi[3];
+nrand48 (unsigned short int xsubi[3])
{
long int result;
diff --git a/stdlib/nrand48_r.c b/stdlib/nrand48_r.c
index 3b1797f..ee4476b 100644
--- a/stdlib/nrand48_r.c
+++ b/stdlib/nrand48_r.c
@@ -19,10 +19,8 @@
#include <stdlib.h>
int
-__nrand48_r (xsubi, buffer, result)
- unsigned short int xsubi[3];
- struct drand48_data *buffer;
- long int *result;
+__nrand48_r (unsigned short int xsubi[3], struct drand48_data *buffer,
+ long int *result)
{
/* Compute next state. */
if (__drand48_iterate (xsubi, buffer) < 0)
diff --git a/stdlib/seed48.c b/stdlib/seed48.c
index 4e7f5b7..e3923e3 100644
--- a/stdlib/seed48.c
+++ b/stdlib/seed48.c
@@ -20,8 +20,7 @@
unsigned short int *
-seed48 (seed16v)
- unsigned short int seed16v[3];
+seed48 (unsigned short int seed16v[3])
{
(void) __seed48_r (seed16v, &__libc_drand48_data);
diff --git a/stdlib/seed48_r.c b/stdlib/seed48_r.c
index a07b501..3056169 100644
--- a/stdlib/seed48_r.c
+++ b/stdlib/seed48_r.c
@@ -21,9 +21,7 @@
#include <limits.h>
int
-__seed48_r (seed16v, buffer)
- unsigned short int seed16v[3];
- struct drand48_data *buffer;
+__seed48_r (unsigned short int seed16v[3], struct drand48_data *buffer)
{
/* Save old value at a private place to be used as return value. */
memcpy (buffer->__old_x, buffer->__x, sizeof (buffer->__x));