]> git.proxmox.com Git - mirror_edk2.git/commit
ShellPkg: Fix GCC build fail and code refine.
authorQiu Shumin <shumin.qiu@intel.com>
Fri, 18 Sep 2015 01:08:31 +0000 (01:08 +0000)
committershenshushi <shenshushi@Edk2>
Fri, 18 Sep 2015 01:08:31 +0000 (01:08 +0000)
commit1fab91765f9c3687ba48625323b634f246c2ee10
treeafb19a0a064f31235129c25973113787c17fa4b0
parenta46bbdd379b54cd465ba75a84596babc8cbc5dbc
ShellPkg: Fix GCC build fail and code refine.

1. Fix GCC build fail.
2. It's not correct to cast away constness to allow TrimSpaces() to modify 'commandline'.
   This patch makes a copy of 'commandLine' and work with that in the remainder of the function.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18500 6f19259b-4bc3-4df7-8a09-765794883524
ShellPkg/Application/Shell/ShellParametersProtocol.c