]> sourceware.org Git - glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Tue, 16 Jan 2001 01:11:59 +0000 (01:11 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 16 Jan 2001 01:11:59 +0000 (01:11 +0000)
* stdlib/random.c (__initstate): Clean up a cast.
(__setstate): Likewise.

ChangeLog
stdlib/random.c

index af70bceb6a2c40665ca001d3ad6287276c91ba5e..2b177924c9f817f6f8cbe78f60adae7bb710cfe6 100644 (file)
--- 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.
 
index 63035484f4815f38b3f5167c5a34de6b7b9c5388..06a4c9782945aa15636228b3b34cb0c3479e1a2a 100644 (file)
@@ -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)
This page took 0.104709 seconds and 5 git commands to generate.