about summary refs log tree commit diff
path: root/src/stdio/vsnprintf.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-03-24 23:16:52 -0400
committerRich Felker <dalias@aerifal.cx>2011-03-24 23:16:52 -0400
commita37452430f93700aeb122d693959ad79d8e43ada (patch)
tree6ed8879bddb17c2b0db8c8bbd4778e11912f0767 /src/stdio/vsnprintf.c
parentd8dc2faf1033e134e3a8f39bdf15c065f4d234be (diff)
downloadmusl-a37452430f93700aeb122d693959ad79d8e43ada.tar.gz
musl-a37452430f93700aeb122d693959ad79d8e43ada.tar.xz
musl-a37452430f93700aeb122d693959ad79d8e43ada.zip
simplify and optimize FILE lock handling
Diffstat (limited to 'src/stdio/vsnprintf.c')
-rw-r--r--src/stdio/vsnprintf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdio/vsnprintf.c b/src/stdio/vsnprintf.c
index ff792e17..5d3f0c5f 100644
--- a/src/stdio/vsnprintf.c
+++ b/src/stdio/vsnprintf.c
@@ -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;