diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-02-24 16:49:20 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-02-24 16:49:20 +0000 |
commit | 50497a166cdd7936a96ab303578aa5d1f75414bf (patch) | |
tree | 17760c927dfb1a7b8063d2fa5b64eb4cd4c6298e /stdlib/random.c | |
parent | 002e2dc42b80045459fdfe9864ff11adaeb0b0a9 (diff) | |
download | glibc-50497a166cdd7936a96ab303578aa5d1f75414bf.zip glibc-50497a166cdd7936a96ab303578aa5d1f75414bf.tar.gz glibc-50497a166cdd7936a96ab303578aa5d1f75414bf.tar.bz2 |
(__initstate): Correct types of parameters and return value. (__setstate): Likewise.
Diffstat (limited to 'stdlib/random.c')
-rw-r--r-- | stdlib/random.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/stdlib/random.c b/stdlib/random.c index e2f40c1..6303548 100644 --- a/stdlib/random.c +++ b/stdlib/random.c @@ -199,17 +199,17 @@ weak_alias (__srandom, srand) Note: The first thing we do is save the current state, if any, just like setstate so that it doesn't matter when initstate is called. Returns a pointer to the old state. */ -void * +char * __initstate (seed, arg_state, n) unsigned int seed; - void *arg_state; + char *arg_state; size_t n; { - void *ostate; + char *ostate; __libc_lock_lock (lock); - ostate = (void *) &unsafe_state.state[-1]; + ostate = (char *) &unsafe_state.state[-1]; __initstate_r (seed, arg_state, n, &unsafe_state); @@ -228,15 +228,15 @@ weak_alias (__initstate, initstate) to the order in which things are done, it is OK to call setstate with the same state as the current state Returns a pointer to the old state information. */ -void * +char * __setstate (arg_state) - void *arg_state; + char *arg_state; { - void *ostate; + char *ostate; __libc_lock_lock (lock); - ostate = (void *) &unsafe_state.state[-1]; + ostate = (char *) &unsafe_state.state[-1]; if (__setstate_r (arg_state, &unsafe_state) < 0) ostate = NULL; |