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:
@ -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 )
|
||||
|
Reference in New Issue
Block a user