Merge "Bug 3330205 Put blanks and zeroes in const area"

This commit is contained in:
Glenn Kasten 2011-01-16 08:50:20 -08:00 committed by Android (Google) Code Review
commit f4e10b721e
3 changed files with 4 additions and 4 deletions

View File

@ -48,7 +48,7 @@ __LIBC_HIDDEN__ int
__sfvwrite(FILE *fp, struct __suio *uio) __sfvwrite(FILE *fp, struct __suio *uio)
{ {
size_t len; size_t len;
char *p; const char *p;
struct __siov *iov; struct __siov *iov;
int w, s; int w, s;
char *nl; char *nl;

View File

@ -36,7 +36,7 @@
* I/O descriptors for __sfvwrite(). * I/O descriptors for __sfvwrite().
*/ */
struct __siov { struct __siov {
void *iov_base; const void *iov_base;
size_t iov_len; size_t iov_len;
}; };
struct __suio { struct __suio {

View File

@ -203,9 +203,9 @@ vfprintf(FILE *fp, const char *fmt0, __va_list ap)
* below longer. * below longer.
*/ */
#define PADSIZE 16 /* pad chunk size */ #define PADSIZE 16 /* pad chunk size */
static char blanks[PADSIZE] = static const char blanks[PADSIZE] =
{' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' '}; {' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' '};
static char zeroes[PADSIZE] = static const char zeroes[PADSIZE] =
{'0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0'}; {'0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0'};
/* /*