svn commit: r216121 - head/lib/libc/stdio

Gavin Atkinson gavin at FreeBSD.org
Thu Dec 2 13:40:22 UTC 2010


Author: gavin
Date: Thu Dec  2 13:40:21 2010
New Revision: 216121
URL: http://svn.freebsd.org/changeset/base/216121

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

Modified:
  head/lib/libc/stdio/printf-pos.c

Modified: head/lib/libc/stdio/printf-pos.c
==============================================================================
--- head/lib/libc/stdio/printf-pos.c	Thu Dec  2 12:44:51 2010	(r216120)
+++ head/lib/libc/stdio/printf-pos.c	Thu Dec  2 13:40:21 2010	(r216121)
@@ -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':


More information about the svn-src-head mailing list