Change return type of random to long int.
This commit is contained in:
Ulrich Drepper 2001-01-27 08:21:42 +00:00
parent 842d709cb3
commit 344be96af4
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@
Change return type of unsetenv to int.
(qecvt, qgcvt, qfcvt): Declare only if __USE_MISC.
* include/stdlib.h: Change return type of unsetenv to int.
Change return type of random to long int.
* 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.

View File

@ -8,7 +8,7 @@
/* Now define the internal interfaces. */
#ifndef __Need_M_And_C
extern int32_t __random (void);
extern long int __random (void);
extern void __srandom (unsigned int __seed);
extern char *__initstate (unsigned int __seed, char *__statebuf,
size_t __statelen);