mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 00:02:28 +00:00
Improve LLVM compatibility a little bit
This commit is contained in:
parent
3057315a1b
commit
1a3d22b2fd
7 changed files with 14 additions and 12 deletions
6
third_party/regex/regerror.c
vendored
6
third_party/regex/regerror.c
vendored
|
@ -47,7 +47,7 @@ static const char kRegexErrors[] =
|
|||
* @return number of bytes needed to hold entire string
|
||||
*/
|
||||
size_t regerror(int e, const regex_t *preg, char *buf, size_t size) {
|
||||
return 1 + snprintf(buf, size, "%s",
|
||||
firstnonnull(IndexDoubleNulString(kRegexErrors, e),
|
||||
"Unknown error"));
|
||||
return 1 + (snprintf)(buf, size, "%s",
|
||||
firstnonnull(IndexDoubleNulString(kRegexErrors, e),
|
||||
"Unknown error"));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue