r744 - trunk

lordhavoc at icculus.org lordhavoc at icculus.org
Mon Jan 1 12:55:58 EST 2007


Author: lordhavoc
Date: 2007-01-01 12:55:58 -0500 (Mon, 01 Jan 2007)
New Revision: 744

Modified:
   trunk/console.c
   trunk/shell.c
Log:
fix a couple 'value computed is not used' warnings


Modified: trunk/console.c
===================================================================
--- trunk/console.c	2006-12-26 06:46:24 UTC (rev 743)
+++ trunk/console.c	2007-01-01 17:55:58 UTC (rev 744)
@@ -710,7 +710,7 @@
 			if( s[1] == CONSOLE_COLORPREFIXCHARACTER )
 				*p++ = *s++;
 			else
-				for( i = 0 ; i < Console_ColorCodeLength && *s ; *s++, i++ );
+				for( i = 0 ; i < Console_ColorCodeLength && *s ; s++, i++ );
 		}
 	}
 

Modified: trunk/shell.c
===================================================================
--- trunk/shell.c	2006-12-26 06:46:24 UTC (rev 743)
+++ trunk/shell.c	2007-01-01 17:55:58 UTC (rev 744)
@@ -409,7 +409,7 @@
 	if( IsNewLine( *parser->currentChar ) ) {
 		Shell_Parser_ReadNewLines( parser );
 	} else if( *parser->currentChar ) {
-		*parser->currentChar++;
+		parser->currentChar++;
 	}
 }
 




More information about the neither-commits mailing list