simplify and optimize FILE lock handling

This commit is contained in:
Rich Felker
2011-03-24 23:16:52 -04:00
parent d8dc2faf10
commit a37452430f
5 changed files with 14 additions and 14 deletions

View File

@ -17,7 +17,7 @@ int vsnprintf(char *s, size_t n, const char *fmt, va_list ap)
f.write = sn_write;
f.buf_size = 1;
f.buf = buf;
f.owner = -1;
f.lock = -1;
if (n > INT_MAX) {
errno = EOVERFLOW;
return -1;