]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Remove uses of sprintf in gen-posix-conf-vars.awk
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Fri, 2 Jan 2015 05:46:35 +0000 (11:16 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Fri, 2 Jan 2015 05:46:35 +0000 (11:16 +0530)
Simply some code by replacing sprintf in the awk script.

ChangeLog
scripts/gen-posix-conf-vars.awk

index fc7a34e350b861f692dbd7e77cfbcf745cecdd0e..cf3318503af4d8471ecd5c2f4344774ae50641a3 100644 (file)
--- 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]
index 220d0e89b92d024dae0ec178c654f41862b07213..9a4c54256af93c79fe292f1f3bcc38b6ecc7578d 100644 (file)
@@ -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