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.15-602-gc7a6ab7


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  c7a6ab72e920bc442896a6e33fdcd7b318539859 (commit)
      from  a9e8e0e0f3b8793b618f5b3c718723a7c12ba4b2 (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=c7a6ab72e920bc442896a6e33fdcd7b318539859

commit c7a6ab72e920bc442896a6e33fdcd7b318539859
Author: Antoine Balestrat <merkil33@gmail.com>
Date:   Fri Apr 13 14:31:35 2012 -0700

    Fix variable check in sparc clock frequency probing.
    
    	* sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
    	(__get_clockfreq_via_proc_openprom): Fix test on wrong variable.

diff --git a/ChangeLog b/ChangeLog
index 25493ab..2a331e6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-04-13  Antoine Balestrat <merkil33@gmail.com>
+
+	* sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
+	(__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
+
 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
 
 	[BZ #13973]
diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c b/sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
index e3cea9f..cbb8179 100644
--- a/sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
+++ b/sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
@@ -126,7 +126,7 @@ __get_clockfreq_via_proc_openprom (void)
 
 		      __stpcpy (prop, "/clock-frequency");
 		      clkfreq_fd = open (node, O_RDONLY);
-		      if (fd != -1)
+		      if (clkfreq_fd != -1)
 			{
 			  if (read (clkfreq_fd, type_string,
 				    sizeof (type_string)) > 0)

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

Summary of changes:
 ChangeLog                                          |    5 +++++
 .../unix/sysv/linux/sparc/sparc64/get_clockfreq.c  |    2 +-
 2 files changed, 6 insertions(+), 1 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]