about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/gen-posix-conf-vars.awk7
1 files changed, 2 insertions, 5 deletions
diff --git a/scripts/gen-posix-conf-vars.awk b/scripts/gen-posix-conf-vars.awk
index 220d0e89b9..9a4c54256a 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