Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove uses of sprintf in gen-posix-conf-vars.awk
Simply some code by replacing sprintf in the awk script.
  • Loading branch information
Siddhesh Poyarekar committed Jan 2, 2015
1 parent 73a268c commit b217c15
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 4 additions & 0 deletions 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]
Expand Down
7 changes: 2 additions & 5 deletions scripts/gen-posix-conf-vars.awk
Expand Up @@ -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
Expand Down

0 comments on commit b217c15

Please sign in to comment.