This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch, master, updated. glibc-2.11-53-gc53f622


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  c53f6228f178f54d8a93569b88c1c3144c8a9d3a (commit)
      from  aa9890239a2aef81e64f3f22a31c7e01b6501f69 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=c53f6228f178f54d8a93569b88c1c3144c8a9d3a

commit c53f6228f178f54d8a93569b88c1c3144c8a9d3a
Author: Ulrich Drepper <drepper@redhat.com>
Date:   Tue Nov 24 20:22:44 2009 -0800

    Fix comments in random_r.c.

diff --git a/ChangeLog b/ChangeLog
index 4f74b50..000a535 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2009-11-24  Ulrich Drepper  <drepper@redhat.com>
 
+	[BZ #3662]
+	* stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
+	Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
+
 	* sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
 	pass it on to __ptsname_internal.
 	(grantpt): Pass stat64 pointer to pts_name.  Remove stat call here.
diff --git a/stdlib/random_r.c b/stdlib/random_r.c
index 90a157f..51a2e8c 100644
--- a/stdlib/random_r.c
+++ b/stdlib/random_r.c
@@ -228,7 +228,7 @@ weak_alias (__srandom_r, srandom_r)
    lose this information and will be able to restart with setstate.
    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.  */
+   Returns 0 on success, non-zero on failure.  */
 int
 __initstate_r (seed, arg_state, n, buf)
      unsigned int seed;
@@ -296,7 +296,7 @@ weak_alias (__initstate_r, initstate_r)
    location into the zeroth word of the state information. Note that due
    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.  */
+   Returns 0 on success, non-zero on failure.  */
 int
 __setstate_r (arg_state, buf)
      char *arg_state;

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog         |    4 ++++
 stdlib/random_r.c |    4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]