about summary refs log tree commit diff
path: root/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/drand48.c2
-rw-r--r--stdlib/lrand48.c2
-rw-r--r--stdlib/mrand48.c2
-rw-r--r--stdlib/rand.c2
-rw-r--r--stdlib/random.c2
-rw-r--r--stdlib/setenv.c2
6 files changed, 6 insertions, 6 deletions
diff --git a/stdlib/drand48.c b/stdlib/drand48.c
index 1745be8e48..6371b0be84 100644
--- a/stdlib/drand48.c
+++ b/stdlib/drand48.c
@@ -20,7 +20,7 @@
 
 
 double
-drand48 ()
+drand48 (void)
 {
   double result;
 
diff --git a/stdlib/lrand48.c b/stdlib/lrand48.c
index 1c8c3796ca..2b9b19a113 100644
--- a/stdlib/lrand48.c
+++ b/stdlib/lrand48.c
@@ -20,7 +20,7 @@
 
 
 long int
-lrand48 ()
+lrand48 (void)
 {
   long int result;
 
diff --git a/stdlib/mrand48.c b/stdlib/mrand48.c
index a0693f5678..6e0adf9418 100644
--- a/stdlib/mrand48.c
+++ b/stdlib/mrand48.c
@@ -20,7 +20,7 @@
 
 
 long int
-mrand48 ()
+mrand48 (void)
 {
   long int result;
 
diff --git a/stdlib/rand.c b/stdlib/rand.c
index 3e0839fe4c..ba3a9e79bf 100644
--- a/stdlib/rand.c
+++ b/stdlib/rand.c
@@ -22,7 +22,7 @@
 
 /* Return a random integer between 0 and RAND_MAX.  */
 int
-rand ()
+rand (void)
 {
   return (int) __random ();
 }
diff --git a/stdlib/random.c b/stdlib/random.c
index 0235ebe9b4..e4302b0791 100644
--- a/stdlib/random.c
+++ b/stdlib/random.c
@@ -289,7 +289,7 @@ weak_alias (__setstate, setstate)
    pointer if the front one has wrapped.  Returns a 31-bit random number.  */
 
 long int
-__random ()
+__random (void)
 {
   int32_t retval;
 
diff --git a/stdlib/setenv.c b/stdlib/setenv.c
index fdcd8e1d08..63c995b0da 100644
--- a/stdlib/setenv.c
+++ b/stdlib/setenv.c
@@ -349,7 +349,7 @@ unsetenv (name)
    never made it.  Nevertheless the POSIX.9 standard (POSIX bindings
    for Fortran 77) requires this function.  */
 int
-clearenv ()
+clearenv (void)
 {
   LOCK;