summaryrefslogtreecommitdiff
path: root/libc/stdio/vdprintf.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-04-09 19:52:13 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-04-09 19:52:13 +0000
commit023509e8e5f1ad1f6a61cdec061d43e69a16ebc3 (patch)
tree1a96bfe648b08ccd9359bfcca8c13bcfd05a0938 /libc/stdio/vdprintf.c
parent36ac7bee0f6b0be35eafd74e0fc865edd2352197 (diff)
Remove vestigial locking init from sprintf routines.
Diffstat (limited to 'libc/stdio/vdprintf.c')
-rw-r--r--libc/stdio/vdprintf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/stdio/vdprintf.c b/libc/stdio/vdprintf.c
index 9e1b22eaf..2105313e7 100644
--- a/libc/stdio/vdprintf.c
+++ b/libc/stdio/vdprintf.c
@@ -47,6 +47,8 @@ int vdprintf(int filedes, const char * __restrict format, va_list arg)
__INIT_MBSTATE(&(f.__state));
#endif /* __STDIO_MBSTATE */
+/* _vfprintf_internal doesn't do any locking, locking init is here
+ * only because of fflush_unlocked. TODO? */
#ifdef __UCLIBC_HAS_THREADS__
f.__user_locking = 1; /* Set user locking. */
__stdio_init_mutex(&f.__lock);