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
+1 -1
View File
@@ -32,7 +32,7 @@ int vswprintf(wchar_t *s, size_t n, const wchar_t *fmt, va_list ap)
f.write = sw_write;
f.buf_size = sizeof buf;
f.buf = buf;
f.owner = -1;
f.lock = -1;
f.cookie = &c;
if (!n) {
return -1;