mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
Some compiler error fixes.
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@591 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -238,10 +238,10 @@ printf("[update] filename %s type %c newVersion %s md5 %s\n", filename.c_str(),
|
||||
bool CFlashUpdate::getUpdateImage(const std::string & version)
|
||||
{
|
||||
CHTTPTool httpTool;
|
||||
char * fname, dest_name[100];
|
||||
char dest_name[100];
|
||||
httpTool.setStatusViewer(this);
|
||||
|
||||
fname = rindex(filename.c_str(), '/');
|
||||
const char *fname = rindex(filename.c_str(), '/');
|
||||
if(fname != NULL) fname++;
|
||||
else return false;
|
||||
|
||||
@@ -335,7 +335,7 @@ printf("[update] mode is %d\n", g_settings.softupdate_mode);
|
||||
return false;
|
||||
}
|
||||
hide();
|
||||
char * ptr = rindex(filename.c_str(), '.');
|
||||
const char *ptr = rindex(filename.c_str(), '.');
|
||||
if(ptr) {
|
||||
ptr++;
|
||||
if(!strcmp(ptr, "bin")) fileType = 'A';
|
||||
@@ -381,7 +381,7 @@ int CFlashUpdate::exec(CMenuTarget* parent, const std::string &)
|
||||
|
||||
if(g_settings.softupdate_mode==1) //internet-update
|
||||
{
|
||||
char * fname = rindex(filename.c_str(), '/') +1;
|
||||
const char * fname = rindex(filename.c_str(), '/') +1;
|
||||
char fullname[255];
|
||||
|
||||
if(!getUpdateImage(newVersion)) {
|
||||
|
Reference in New Issue
Block a user