- fix constness

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@911 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
seife
2010-11-28 22:00:54 +00:00
parent 237b53724e
commit 6184b6c1dc
2 changed files with 6 additions and 5 deletions

View File

@@ -265,10 +265,11 @@ bool CFlashUpdate::selectHttpImage(void)
bool CFlashUpdate::getUpdateImage(const std::string & version)
{
CHTTPTool httpTool;
char const * fname;
char dest_name[100];
httpTool.setStatusViewer(this);
const char *fname = rindex(filename.c_str(), '/');
fname = rindex(filename.c_str(), '/');
if(fname != NULL) fname++;
else return false;
@@ -362,7 +363,7 @@ printf("[update] mode is %d\n", g_settings.softupdate_mode);
return false;
}
hide();
const char *ptr = rindex(filename.c_str(), '.');
char const * ptr = rindex(filename.c_str(), '.');
if(ptr) {
ptr++;
if(!strcmp(ptr, "bin")) fileType = 'A';
@@ -408,7 +409,7 @@ int CFlashUpdate::exec(CMenuTarget* parent, const std::string &)
if(g_settings.softupdate_mode==1) //internet-update
{
const char * fname = rindex(filename.c_str(), '/') +1;
char const * fname = rindex(filename.c_str(), '/') +1;
char fullname[255];
if(!getUpdateImage(newVersion)) {