mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 12:30:06 +00:00
Remove uses of sprintf in gen-posix-conf-vars.awk
Simply some code by replacing sprintf in the awk script.
This commit is contained in:
parent
73a268c759
commit
b217c15fc3
@ -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>
|
2014-12-31 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
[BZ #17748]
|
[BZ #17748]
|
||||||
|
@ -68,11 +68,8 @@ END {
|
|||||||
|
|
||||||
# Build a name -> sysconf number associative array to print a C array at
|
# Build a name -> sysconf number associative array to print a C array at
|
||||||
# the end.
|
# the end.
|
||||||
if (prefix_conf[c] == "SPEC") {
|
if (prefix_conf[c] == "SPEC")
|
||||||
name = sprintf ("%s", c)
|
spec[c] = sc_prefixes[c] "_" conf[c]
|
||||||
num = sprintf ("%s_%s", sc_prefixes[c], conf[c])
|
|
||||||
spec[name] = num
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Print the specification array. Define the macro NEED_SPEC_ARRAY before
|
# Print the specification array. Define the macro NEED_SPEC_ARRAY before
|
||||||
|
Loading…
Reference in New Issue
Block a user