aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2015-01-02 11:16:35 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2015-01-02 11:16:35 +0530
commitb217c15fc340bc29e7cab0a80626c65e48fcebd6 (patch)
tree14e2a1d8e3635f530ec4ea3a9776881125797301
parent73a268c75996b92e4a5e72bf9fdf6adc20390614 (diff)
downloadglibc-b217c15fc340bc29e7cab0a80626c65e48fcebd6.zip
glibc-b217c15fc340bc29e7cab0a80626c65e48fcebd6.tar.gz
glibc-b217c15fc340bc29e7cab0a80626c65e48fcebd6.tar.bz2
Remove uses of sprintf in gen-posix-conf-vars.awk
Simply some code by replacing sprintf in the awk script.
-rw-r--r--ChangeLog4
-rw-r--r--scripts/gen-posix-conf-vars.awk7
2 files changed, 6 insertions, 5 deletions
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