summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdio/vprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/vprintf.c')
-rw-r--r--newlib/libc/stdio/vprintf.c24
1 files changed, 11 insertions, 13 deletions
diff --git a/newlib/libc/stdio/vprintf.c b/newlib/libc/stdio/vprintf.c
index 916d51898..8a1faaed1 100644
--- a/newlib/libc/stdio/vprintf.c
+++ b/newlib/libc/stdio/vprintf.c
@@ -1,5 +1,3 @@
-/* doc in vfprintf.c */
-
/*
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
@@ -16,37 +14,37 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
+/* doc in vfprintf.c */
#include <_ansi.h>
+#include <reent.h>
#include <stdio.h>
-
#ifdef _HAVE_STDC
#include <stdarg.h>
#else
#include <varargs.h>
#endif
-
#include "local.h"
#ifndef _REENT_ONLY
int
-_DEFUN (vprintf, (fmt, ap),
- _CONST char *fmt _AND
- va_list ap)
+_DEFUN(vprintf, (fmt, ap),
+ _CONST char *fmt _AND
+ va_list ap)
{
- _REENT_SMALL_CHECK_INIT(_stdout_r (_REENT));
+ _REENT_SMALL_CHECK_INIT (_stdout_r (_REENT));
return _vfprintf_r (_REENT, _stdout_r (_REENT), fmt, ap);
}
#endif /* !_REENT_ONLY */
int
-_DEFUN (_vprintf_r, (ptr, fmt, ap),
- struct _reent *ptr _AND
- _CONST char *fmt _AND
- va_list ap)
+_DEFUN(_vprintf_r, (ptr, fmt, ap),
+ struct _reent *ptr _AND
+ _CONST char *fmt _AND
+ va_list ap)
{
- _REENT_SMALL_CHECK_INIT(_stdout_r (ptr));
+ _REENT_SMALL_CHECK_INIT (_stdout_r (ptr));
return _vfprintf_r (ptr, _stdout_r (ptr), fmt, ap);
}