* 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.
This commit is contained in:
parent
cb7ba0e119
commit
c7cd784974
|
@ -1,5 +1,10 @@
|
||||||
2007-01-30 Ben Elliston <bje@au.ibm.com>
|
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.
|
* libc/search/hash.c (init_hash): Make `info' parameter const.
|
||||||
|
|
||||||
2007-01-19 Kazunori Asayama <asayama@sm.sony.co.jp>
|
2007-01-19 Kazunori Asayama <asayama@sm.sony.co.jp>
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
#include <_ansi.h>
|
#include <_ansi.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
@ -28,7 +27,7 @@ _DEFUN (printf, (fmt,ap),
|
||||||
int
|
int
|
||||||
#error
|
#error
|
||||||
printf (fmt, va_alist)
|
printf (fmt, va_alist)
|
||||||
char *fmt;
|
_CONST char *fmt;
|
||||||
va_dcl
|
va_dcl
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
@ -38,13 +37,11 @@ printf (fmt, va_alist)
|
||||||
|
|
||||||
args.fmt = fmt;
|
args.fmt = fmt;
|
||||||
#ifdef _HAVE_STDC
|
#ifdef _HAVE_STDC
|
||||||
va_start (args.ap, args.fmt);
|
va_start (args.ap, fmt);
|
||||||
#else
|
#else
|
||||||
va_start (args.ap);
|
va_start (args.ap);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* ret = vfprintf (_stdout_r (_REENT), fmt, ap);*/
|
|
||||||
send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_VPRINTF, &args);
|
send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_VPRINTF, &args);
|
||||||
|
|
||||||
va_end (args.ap);
|
va_end (args.ap);
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
#include <_ansi.h>
|
#include <_ansi.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
@ -16,7 +15,7 @@ typedef struct
|
||||||
unsigned int pad0[ 3 ];
|
unsigned int pad0[ 3 ];
|
||||||
size_t size;
|
size_t size;
|
||||||
unsigned int pad1[ 3 ];
|
unsigned int pad1[ 3 ];
|
||||||
char* fmt;
|
_CONST char* fmt;
|
||||||
unsigned int pad2[ 3 ];
|
unsigned int pad2[ 3 ];
|
||||||
va_list ap;
|
va_list ap;
|
||||||
} c99_vsnprintf_t;
|
} c99_vsnprintf_t;
|
||||||
|
|
Loading…
Reference in New Issue