Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorBen Elliston <bje@gnu.org>2007-01-30 06:18:52 +0300
committerBen Elliston <bje@gnu.org>2007-01-30 06:18:52 +0300
commitc7cd7849748c71ee9ef47a6bbbf43a281fe49ce4 (patch)
tree9c7169dc3dde177c9174a5eb147a3cb0cc2eba1b /newlib
parentcb7ba0e119d7aab3240a6877db96c5aec43a64b1 (diff)
* 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.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/machine/spu/printf.c7
-rw-r--r--newlib/libc/machine/spu/vsnprintf.c3
3 files changed, 8 insertions, 7 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index ce87ae6b0..2a8f90320 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,5 +1,10 @@
2007-01-30 Ben Elliston <bje@au.ibm.com>
+ * 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.
+
* libc/search/hash.c (init_hash): Make `info' parameter const.
2007-01-19 Kazunori Asayama <asayama@sm.sony.co.jp>
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 <stdio.h>
@@ -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);
diff --git a/newlib/libc/machine/spu/vsnprintf.c b/newlib/libc/machine/spu/vsnprintf.c
index a5ed0f2ee..fb04b4dae 100644
--- a/newlib/libc/machine/spu/vsnprintf.c
+++ b/newlib/libc/machine/spu/vsnprintf.c
@@ -1,4 +1,3 @@
-
#include <_ansi.h>
#include <stdio.h>
@@ -16,7 +15,7 @@ typedef struct
unsigned int pad0[ 3 ];
size_t size;
unsigned int pad1[ 3 ];
- char* fmt;
+ _CONST char* fmt;
unsigned int pad2[ 3 ];
va_list ap;
} c99_vsnprintf_t;