summaryrefslogtreecommitdiff
path: root/stdio-common/printf-parsemb.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2014-10-13 11:12:28 -0700
committerRoland McGrath <roland@hack.frob.com>2014-10-13 11:12:28 -0700
commit53544380266a8eb38bef9389562fba3ed58a0d11 (patch)
treed040f7c483990e8cf4bb8e11102f15c04a2f6514 /stdio-common/printf-parsemb.c
parentfcb32af153a745414b0d949e707c9485ab77d6ba (diff)
downloadglibc-roland/Wshadow.tar.gz
Diffstat (limited to 'stdio-common/printf-parsemb.c')
-rw-r--r--stdio-common/printf-parsemb.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/stdio-common/printf-parsemb.c b/stdio-common/printf-parsemb.c
index 24909b2b04..ac281b60fa 100644
--- a/stdio-common/printf-parsemb.c
+++ b/stdio-common/printf-parsemb.c
@@ -62,7 +62,6 @@ __parse_one_specmb (const UCHAR_T *format, size_t posn,
struct printf_spec *spec, size_t *max_ref_arg)
#endif
{
- unsigned int n;
size_t nargs = 0;
/* Skip the '%'. */
@@ -85,7 +84,7 @@ __parse_one_specmb (const UCHAR_T *format, size_t posn,
{
const UCHAR_T *begin = format;
- n = read_int (&format);
+ int n = read_int (&format);
if (n != 0 && *format == L_('$'))
/* Is positional parameter. */
@@ -161,7 +160,7 @@ __parse_one_specmb (const UCHAR_T *format, size_t posn,
if (ISDIGIT (*format))
{
/* The width argument might be found in a positional parameter. */
- n = read_int (&format);
+ int n = read_int (&format);
if (n != 0 && *format == L_('$'))
{
@@ -204,7 +203,7 @@ __parse_one_specmb (const UCHAR_T *format, size_t posn,
if (ISDIGIT (*format))
{
- n = read_int (&format);
+ int n = read_int (&format);
if (n != 0 && *format == L_('$'))
{