aboutsummaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2013-06-08 00:22:23 +0000
committerJoseph Myers <joseph@codesourcery.com>2013-06-08 00:22:23 +0000
commit60d2f8f3c7f1cdacafcbd60dc004e32cc90035ca (patch)
tree29d9258b64874c6c9838757a9c67ef62a6a0868c /stdlib
parent2e09a79ada1f6d92809a037d41895e3d9302ad59 (diff)
downloadglibc-60d2f8f3c7f1cdacafcbd60dc004e32cc90035ca.zip
glibc-60d2f8f3c7f1cdacafcbd60dc004e32cc90035ca.tar.gz
glibc-60d2f8f3c7f1cdacafcbd60dc004e32cc90035ca.tar.bz2
Use (void) in no-arguments function definitions.
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 1745be8..6371b0b 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 1c8c379..2b9b19a 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 a0693f5..6e0adf9 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 3e0839f..ba3a9e7 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 0235ebe..e4302b0 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 fdcd8e1..63c995b 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;