From 023509e8e5f1ad1f6a61cdec061d43e69a16ebc3 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Wed, 9 Apr 2008 19:52:13 +0000 Subject: Remove vestigial locking init from sprintf routines. --- libc/stdio/vdprintf.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libc/stdio/vdprintf.c') 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); -- cgit v1.2.3