diff options
Diffstat (limited to 'stdio-common/fxprintf.c')
-rw-r--r-- | stdio-common/fxprintf.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/stdio-common/fxprintf.c b/stdio-common/fxprintf.c index c4a1146b20..8d02b71f91 100644 --- a/stdio-common/fxprintf.c +++ b/stdio-common/fxprintf.c @@ -62,18 +62,22 @@ locked_vfxprintf (FILE *fp, const char *fmt, va_list ap) } int -__fxprintf (FILE *fp, const char *fmt, ...) +__vfxprintf (FILE *fp, const char *fmt, va_list ap) { if (fp == NULL) fp = stderr; - - va_list ap; - va_start (ap, fmt); _IO_flockfile (fp); - int res = locked_vfxprintf (fp, fmt, ap); - _IO_funlockfile (fp); + return res; +} + +int +__fxprintf (FILE *fp, const char *fmt, ...) +{ + va_list ap; + va_start (ap, fmt); + int res = __vfxprintf (fp, fmt, ap); va_end (ap); return res; } |