mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 07:23:09 +02:00
opkg_manager: avoid [-Wshadow] warnings
This commit is contained in:
@@ -218,11 +218,11 @@ int COPKGManager::exec(CMenuTarget* parent, const string &actionKey)
|
|||||||
|
|
||||||
if (fileBrowser.exec((*local_dir).c_str()))
|
if (fileBrowser.exec((*local_dir).c_str()))
|
||||||
{
|
{
|
||||||
string pkg_name = fileBrowser.getSelectedFile()->Name;
|
string package = fileBrowser.getSelectedFile()->Name;
|
||||||
if (!installPackage(pkg_name))
|
if (!installPackage(package))
|
||||||
showError(g_Locale->getText(LOCALE_OPKG_FAILURE_INSTALL), NULL, pkg_name);
|
showError(g_Locale->getText(LOCALE_OPKG_FAILURE_INSTALL), NULL, package);
|
||||||
/* errno is never set properly, the string is totally useless.
|
/* errno is never set properly, the string is totally useless.
|
||||||
showError(g_Locale->getText(LOCALE_OPKG_FAILURE_INSTALL), strerror(errno), pkg_name);
|
showError(g_Locale->getText(LOCALE_OPKG_FAILURE_INSTALL), strerror(errno), package);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
*local_dir = fileBrowser.getCurrentDir();
|
*local_dir = fileBrowser.getCurrentDir();
|
||||||
|
Reference in New Issue
Block a user