From c7cd7849748c71ee9ef47a6bbbf43a281fe49ce4 Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Tue, 30 Jan 2007 03:18:52 +0000 Subject: * libc/machine/spu/vsnprintf.c (c99_vsnprintf_t): Const-qualify fmt member. * libc/machine/spu/printf.c (c99_printf_t): Likewise. (printf): Pass fmt to va_start to suppress a warning. --- newlib/libc/machine/spu/printf.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'newlib/libc/machine/spu/printf.c') diff --git a/newlib/libc/machine/spu/printf.c b/newlib/libc/machine/spu/printf.c index d79f35dc5..695bb5a15 100644 --- a/newlib/libc/machine/spu/printf.c +++ b/newlib/libc/machine/spu/printf.c @@ -1,4 +1,3 @@ - #include <_ansi.h> #include @@ -28,7 +27,7 @@ _DEFUN (printf, (fmt,ap), int #error printf (fmt, va_alist) - char *fmt; + _CONST char *fmt; va_dcl #endif { @@ -38,13 +37,11 @@ printf (fmt, va_alist) args.fmt = fmt; #ifdef _HAVE_STDC - va_start (args.ap, args.fmt); + va_start (args.ap, fmt); #else va_start (args.ap); #endif - - /* ret = vfprintf (_stdout_r (_REENT), fmt, ap);*/ send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_VPRINTF, &args); va_end (args.ap); -- cgit v1.2.3