Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
locale.c: Change S_emulate_setlocale name and sig
It turns out this function is called only from places where we have the category index already computed; so change the signature to use the index and remove the re-calculation. It renames it to emulate_setlocale_i() to indicate that the category parameter is an index. This also means, that it's very unlikely that it will be called with an out-of-bounds value. Remove the debugging statement for that case (but retain the error return value).
- Loading branch information
1 parent
d6b74e9
commit ef28466
Showing
4 changed files
with
26 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters