mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03: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:
@ -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
|
||||
|
Reference in New Issue
Block a user