mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
src/gui/opkg_manager.cpp: Fix compiler warning
This commit is contained in:
@@ -213,7 +213,7 @@ int COPKGManager::exec(CMenuTarget* parent, const string &actionKey)
|
|||||||
{
|
{
|
||||||
string pkg_name = fileBrowser.getSelectedFile()->Name;
|
string pkg_name = fileBrowser.getSelectedFile()->Name;
|
||||||
if (!installPackage(pkg_name))
|
if (!installPackage(pkg_name))
|
||||||
showError(g_Locale->getText(LOCALE_OPKG_FAILURE_INSTALL), "", pkg_name);
|
showError(g_Locale->getText(LOCALE_OPKG_FAILURE_INSTALL), NULL, pkg_name);
|
||||||
/* 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), pkg_name);
|
||||||
*/
|
*/
|
||||||
@@ -231,7 +231,7 @@ int COPKGManager::exec(CMenuTarget* parent, const string &actionKey)
|
|||||||
/* 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_UPGRADE), strerror(errno), actionKey);
|
showError(g_Locale->getText(LOCALE_OPKG_FAILURE_UPGRADE), strerror(errno), actionKey);
|
||||||
*/
|
*/
|
||||||
showError(g_Locale->getText(LOCALE_OPKG_FAILURE_UPGRADE), "", actionKey);
|
showError(g_Locale->getText(LOCALE_OPKG_FAILURE_UPGRADE), NULL, actionKey);
|
||||||
} else
|
} else
|
||||||
installed = true;
|
installed = true;
|
||||||
refreshMenu();
|
refreshMenu();
|
||||||
@@ -1008,7 +1008,7 @@ bool COPKGManager::installPackage(const string& pkg_name, string options, bool f
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
showError(g_Locale->getText(LOCALE_OPKG_FAILURE_INSTALL), "", pkg_types[OM_INSTALL] + opts + pkg_name);
|
showError(g_Locale->getText(LOCALE_OPKG_FAILURE_INSTALL), NULL, pkg_types[OM_INSTALL] + opts + pkg_name);
|
||||||
/* errno / strerror considered useless here
|
/* errno / strerror considered useless here
|
||||||
showError(g_Locale->getText(LOCALE_OPKG_FAILURE_INSTALL), strerror(errno), pkg_types[OM_INSTALL] + opts + pkg_name);
|
showError(g_Locale->getText(LOCALE_OPKG_FAILURE_INSTALL), strerror(errno), pkg_types[OM_INSTALL] + opts + pkg_name);
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user