]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Sockets/SetSockOpt/SetSockOpt.c
Fix some errors detected by the GCC 4.4 compiler.
[mirror_edk2.git] / AppPkg / Applications / Sockets / SetSockOpt / SetSockOpt.c
index dbecda35acb9ec706512f0ae89b0840779fc67d6..0df143a5144783ce9d8150725e13d938cc35bf7a 100644 (file)
@@ -192,6 +192,9 @@ GetOptionValue (
   if ( pOption->bSetAllowed ) {\r
     Value.u8 = &mValue[0];\r
     switch ( pOption->DataType ) {\r
+    default:\r
+      break;\r
+\r
     case DATA_TYPE_INT32_DECIMAL:\r
       Values = sscanf ( pValue, "%d", Value.i32 );\r
       if ( 1 == Values ) {\r
@@ -201,7 +204,7 @@ GetOptionValue (
       break;\r
 \r
     case DATA_TYPE_TIMEVAL:\r
-      Values = sscanf ( pValue, "%d.%0d",\r
+      Values = sscanf ( pValue, "%d.%d",\r
                         &Value.TimeVal->tv_sec,\r
                         &Value.TimeVal->tv_usec );\r
       if (( 2 == Values )\r