This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.20-459-gb217c15
- From: siddhesh at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 2 Jan 2015 05:52:04 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.20-459-gb217c15
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 b217c15fc340bc29e7cab0a80626c65e48fcebd6 (commit)
from 73a268c75996b92e4a5e72bf9fdf6adc20390614 (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://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=b217c15fc340bc29e7cab0a80626c65e48fcebd6
commit b217c15fc340bc29e7cab0a80626c65e48fcebd6
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
Date: Fri Jan 2 11:16:35 2015 +0530
Remove uses of sprintf in gen-posix-conf-vars.awk
Simply some code by replacing sprintf in the awk script.
diff --git a/ChangeLog b/ChangeLog
index fc7a34e..cf33185 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-01-02 Siddhesh Poyarekar <siddhesh@redhat.com>
+
+ * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
+
2014-12-31 Joseph Myers <joseph@codesourcery.com>
[BZ #17748]
diff --git a/scripts/gen-posix-conf-vars.awk b/scripts/gen-posix-conf-vars.awk
index 220d0e8..9a4c542 100644
--- a/scripts/gen-posix-conf-vars.awk
+++ b/scripts/gen-posix-conf-vars.awk
@@ -68,11 +68,8 @@ END {
# Build a name -> sysconf number associative array to print a C array at
# the end.
- if (prefix_conf[c] == "SPEC") {
- name = sprintf ("%s", c)
- num = sprintf ("%s_%s", sc_prefixes[c], conf[c])
- spec[name] = num
- }
+ if (prefix_conf[c] == "SPEC")
+ spec[c] = sc_prefixes[c] "_" conf[c]
}
# Print the specification array. Define the macro NEED_SPEC_ARRAY before
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 4 ++++
scripts/gen-posix-conf-vars.awk | 7 ++-----
2 files changed, 6 insertions(+), 5 deletions(-)
hooks/post-receive
--
GNU C Library master sources