From 60d2f8f3c7f1cdacafcbd60dc004e32cc90035ca Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Sat, 8 Jun 2013 00:22:23 +0000 Subject: Use (void) in no-arguments function definitions. --- stdlib/drand48.c | 2 +- stdlib/lrand48.c | 2 +- stdlib/mrand48.c | 2 +- stdlib/rand.c | 2 +- stdlib/random.c | 2 +- stdlib/setenv.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to 'stdlib') 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; -- cgit 1.4.1