mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
update: remove obsolete define SQUASHFS
Origin commit data
------------------
Branch: ni/coolstream
Commit: 5f98f95591
Author: vanhofen <vanhofen@gmx.de>
Date: 2023-03-19 (Sun, 19 Mar 2023)
Origin message was:
------------------
- update: remove obsolete define SQUASHFS
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -59,8 +59,6 @@
|
||||
|
||||
#include <lib/libnet/libnet.h>
|
||||
|
||||
#define SQUASHFS
|
||||
|
||||
#include <curl/curl.h>
|
||||
#include <curl/easy.h>
|
||||
|
||||
@@ -89,7 +87,6 @@ extern int allow_flash;
|
||||
|
||||
//#define DRYRUN
|
||||
|
||||
//#define gTmpPath "/var/update/"
|
||||
#define gTmpPath "/tmp/"
|
||||
#define gUserAgent "neutrino/softupdater 1.0"
|
||||
|
||||
@@ -409,7 +406,6 @@ bool CFlashUpdate::checkVersion4Update()
|
||||
{
|
||||
char msg[400];
|
||||
CFlashVersionInfo *versionInfo;
|
||||
neutrino_locale_t msg_body;
|
||||
dprintf(DEBUG_NORMAL, "[update] mode is %d\n", softupdate_mode);
|
||||
if (softupdate_mode == 1) // internet-update
|
||||
{
|
||||
@@ -424,10 +420,8 @@ bool CFlashUpdate::checkVersion4Update()
|
||||
|
||||
hide();
|
||||
|
||||
msg_body = LOCALE_FLASHUPDATE_MSGBOX;
|
||||
#ifdef SQUASHFS
|
||||
versionInfo = new CFlashVersionInfo(newVersion); // Memory leak: versionInfo
|
||||
sprintf(msg, g_Locale->getText(msg_body), versionInfo->getType(true), versionInfo->getVersionString(), versionInfo->getDate(), versionInfo->getTime());
|
||||
sprintf(msg, g_Locale->getText(LOCALE_FLASHUPDATE_MSGBOX), versionInfo->getType(true), versionInfo->getVersionString(), versionInfo->getDate(), versionInfo->getTime());
|
||||
|
||||
if (gotImage)
|
||||
{
|
||||
@@ -449,7 +443,6 @@ bool CFlashUpdate::checkVersion4Update()
|
||||
}
|
||||
|
||||
delete versionInfo;
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user