mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-12 14:21:18 +08:00
Update.
* stdlib/random.c (__initstate): Clean up a cast. (__setstate): Likewise.
This commit is contained in:
parent
ad7069d7f4
commit
a9e4124c20
@ -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.
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user