about summary refs log tree commit diff
path: root/stdlib/random.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-01-27 07:07:07 +0000
committerUlrich Drepper <drepper@redhat.com>2001-01-27 07:07:07 +0000
commit61f9d0a356f84837e3e3af27831ec7d8070f15b7 (patch)
tree3eaa1888ecc0b91db26832062d4c6f42f05202ca /stdlib/random.c
parent69bd45bdbd422fadce2bd7a49db0f0adfb3ea9a2 (diff)
downloadglibc-61f9d0a356f84837e3e3af27831ec7d8070f15b7.tar.gz
glibc-61f9d0a356f84837e3e3af27831ec7d8070f15b7.tar.xz
glibc-61f9d0a356f84837e3e3af27831ec7d8070f15b7.zip
Update.
	* conform/data/stdlib.h-data: Account for XPG6 changes.
	* stdlib/stdlib.h (__random): Change return value type to long.
	(posix_memalign): Cleanup parameter names.
	(setenv, unsetenv): Make available for __USE_XOPEN2K.
	Change return type of unsetenv to int.
	(qecvt, qgcvt, qfcvt): Declare only if __USE_MISC.
	* sysdeps/generic/setenv.c (unsetenv): Change return type to int.
	Return -1 and set errno if parameter is invalid.
	* stdlib/random.c (__random): Change return value type to long.
Diffstat (limited to 'stdlib/random.c')
-rw-r--r--stdlib/random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/random.c b/stdlib/random.c
index 06a4c97829..afd0a1a516 100644
--- a/stdlib/random.c
+++ b/stdlib/random.c
@@ -259,7 +259,7 @@ weak_alias (__setstate, setstate)
    rear pointers can't wrap on the same call by not testing the rear
    pointer if the front one has wrapped.  Returns a 31-bit random number.  */
 
-int32_t
+long int
 __random ()
 {
   int32_t retval;