diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-01-16 01:11:59 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-01-16 01:11:59 +0000 |
commit | a9e4124c20a92c579d192f40a5a9f3900b3b4802 (patch) | |
tree | 4e0cf4a4f3a2bafcc63480ebe7f0012e4adc496d | |
parent | ad7069d7f4018a4834397a1debe6ffad9f2dac1e (diff) | |
download | glibc-a9e4124c20a92c579d192f40a5a9f3900b3b4802.tar.gz glibc-a9e4124c20a92c579d192f40a5a9f3900b3b4802.tar.xz glibc-a9e4124c20a92c579d192f40a5a9f3900b3b4802.zip |
Update.
* stdlib/random.c (__initstate): Clean up a cast. (__setstate): Likewise.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | stdlib/random.c | 12 |
2 files changed, 9 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog index af70bceb6a..2b177924c9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2001-01-15 Ulrich Drepper <drepper@redhat.com> + * stdlib/random.c (__initstate): Clean up a cast. + (__setstate): Likewise. + * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove select syscall handling. The generic Linux version should work. diff --git a/stdlib/random.c b/stdlib/random.c index 63035484f4..06a4c97829 100644 --- a/stdlib/random.c +++ b/stdlib/random.c @@ -205,17 +205,17 @@ __initstate (seed, arg_state, n) char *arg_state; size_t n; { - char *ostate; + int32_t *ostate; __libc_lock_lock (lock); - ostate = (char *) &unsafe_state.state[-1]; + ostate = &unsafe_state.state[-1]; __initstate_r (seed, arg_state, n, &unsafe_state); __libc_lock_unlock (lock); - return ostate; + return (char *) ostate; } weak_alias (__initstate, initstate) @@ -232,18 +232,18 @@ char * __setstate (arg_state) char *arg_state; { - char *ostate; + int32_t *ostate; __libc_lock_lock (lock); - ostate = (char *) &unsafe_state.state[-1]; + ostate = &unsafe_state.state[-1]; if (__setstate_r (arg_state, &unsafe_state) < 0) ostate = NULL; __libc_lock_unlock (lock); - return ostate; + return (char *) ostate; } weak_alias (__setstate, setstate) |