Fix some errors detected by the GCC 4.4 compiler.

Signed-off-by: lpleahy

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13007 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lpleahy
2012-02-10 03:46:25 +00:00
parent 826f9005c2
commit d3a595ceb9
15 changed files with 59 additions and 40 deletions

View File

@ -192,6 +192,9 @@ GetOptionValue (
if ( pOption->bSetAllowed ) {
Value.u8 = &mValue[0];
switch ( pOption->DataType ) {
default:
break;
case DATA_TYPE_INT32_DECIMAL:
Values = sscanf ( pValue, "%d", Value.i32 );
if ( 1 == Values ) {
@ -201,7 +204,7 @@ GetOptionValue (
break;
case DATA_TYPE_TIMEVAL:
Values = sscanf ( pValue, "%d.%0d",
Values = sscanf ( pValue, "%d.%d",
&Value.TimeVal->tv_sec,
&Value.TimeVal->tv_usec );
if (( 2 == Values )