aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--include/stdlib.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 2698f78..bb1d2a6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/include/stdlib.h b/include/stdlib.h
index 41c5b78..12fce40 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -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);