diff options
author | jljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-09-17 20:09:48 +0000 |
---|---|---|
committer | jljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-09-17 20:09:48 +0000 |
commit | e97233217ed6d37d7bb7fefb0ff0821515a23b48 (patch) | |
tree | f7701934bb62d5ba79025c295b098f2eee5abbc1 /ShellPkg/Library/UefiShellLevel2CommandsLib | |
parent | a48ea694577d853c9e38500e0d0ce3ab65f17d90 (diff) | |
download | edk2-e97233217ed6d37d7bb7fefb0ff0821515a23b48.zip edk2-e97233217ed6d37d7bb7fefb0ff0821515a23b48.tar.gz edk2-e97233217ed6d37d7bb7fefb0ff0821515a23b48.tar.bz2 |
ShellPkg: Fix several GCC compiler warnings
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10890 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg/Library/UefiShellLevel2CommandsLib')
-rw-r--r-- | ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c | 2 | ||||
-rw-r--r-- | ShellPkg/Library/UefiShellLevel2CommandsLib/Map.c | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c b/ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c index e35bf18..94161cf 100644 --- a/ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c +++ b/ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c @@ -111,6 +111,8 @@ CopySingleFile( *Resp = Response;
case ShellPromptResponseYes:
break;
+ default:
+ return SHELL_ABORTED;
}
}
}
diff --git a/ShellPkg/Library/UefiShellLevel2CommandsLib/Map.c b/ShellPkg/Library/UefiShellLevel2CommandsLib/Map.c index 5d6a200..c4c8c87 100644 --- a/ShellPkg/Library/UefiShellLevel2CommandsLib/Map.c +++ b/ShellPkg/Library/UefiShellLevel2CommandsLib/Map.c @@ -790,9 +790,9 @@ IsNumberLetterOnly( )
{
while(String != NULL && *String != CHAR_NULL) {
- if (! ( *String >= L'a' && *String <= L'z'
- || *String >= L'A' && *String <= L'Z'
- || *String >= L'0' && *String <= L'9')
+ if (! ((*String >= L'a' && *String <= L'z') ||
+ (*String >= L'A' && *String <= L'Z') ||
+ (*String >= L'0' && *String <= L'9'))
){
return (FALSE);
}
|