Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Mar 2012 22:07:41 +0000 (UTC)
From:      Gavin Atkinson <gavin@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r232838 - stable/8/lib/libc/stdio
Message-ID:  <201203112207.q2BM7fHo028912@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gavin
Date: Sun Mar 11 22:07:41 2012
New Revision: 232838
URL: http://svn.freebsd.org/changeset/base/232838

Log:
  Merge r216121 from head:
     Remove two unused variables, left over from the refactoring in r180104.
  
  PR:		bin/152551
  Submitted by:	Henning Petersen <henning.petersen t-online.de>

Modified:
  stable/8/lib/libc/stdio/printf-pos.c
Directory Properties:
  stable/8/lib/libc/   (props changed)

Modified: stable/8/lib/libc/stdio/printf-pos.c
==============================================================================
--- stable/8/lib/libc/stdio/printf-pos.c	Sun Mar 11 21:25:42 2012	(r232837)
+++ stable/8/lib/libc/stdio/printf-pos.c	Sun Mar 11 22:07:41 2012	(r232838)
@@ -248,7 +248,6 @@ __find_arguments (const char *fmt0, va_l
 	int n;			/* handy integer (short term usage) */
 	int error;
 	int flags;		/* flags as above */
-	int width;		/* width from format (%8d), or 0 */
 	struct typetable types;	/* table of types */
 
 	fmt = (char *)fmt0;
@@ -266,7 +265,6 @@ __find_arguments (const char *fmt0, va_l
 		fmt++;		/* skip over '%' */
 
 		flags = 0;
-		width = 0;
 
 rflag:		ch = *fmt++;
 reswitch:	switch (ch) {
@@ -304,7 +302,6 @@ reswitch:	switch (ch) {
 				types.nextarg = n;
 				goto rflag;
 			}
-			width = n;
 			goto reswitch;
 #ifndef NO_FLOATING_POINT
 		case 'L':
@@ -439,7 +436,6 @@ __find_warguments (const wchar_t *fmt0, 
 	int n;			/* handy integer (short term usage) */
 	int error;
 	int flags;		/* flags as above */
-	int width;		/* width from format (%8d), or 0 */
 	struct typetable types;	/* table of types */
 
 	fmt = (wchar_t *)fmt0;
@@ -457,7 +453,6 @@ __find_warguments (const wchar_t *fmt0, 
 		fmt++;		/* skip over '%' */
 
 		flags = 0;
-		width = 0;
 
 rflag:		ch = *fmt++;
 reswitch:	switch (ch) {
@@ -495,7 +490,6 @@ reswitch:	switch (ch) {
 				types.nextarg = n;
 				goto rflag;
 			}
-			width = n;
 			goto reswitch;
 #ifndef NO_FLOATING_POINT
 		case 'L':



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203112207.q2BM7fHo028912>