mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 22:07:19 +02:00
45 lines
1.5 KiB
Diff
45 lines
1.5 KiB
Diff
diff --git a/xbmc/utils/posix/PosixInterfaceForCLog.cpp b/xbmc/utils/posix/PosixInterfaceForCLog.cpp
|
|
index a3d4983..8443024 100644
|
|
--- a/xbmc/utils/posix/PosixInterfaceForCLog.cpp
|
|
+++ b/xbmc/utils/posix/PosixInterfaceForCLog.cpp
|
|
@@ -29,10 +29,6 @@
|
|
#include "platform/android/activity/XBMCApp.h"
|
|
#endif // TARGET_ANDROID
|
|
|
|
-struct FILEWRAP : public FILE
|
|
-{};
|
|
-
|
|
-
|
|
CPosixInterfaceForCLog::CPosixInterfaceForCLog() :
|
|
m_file(NULL)
|
|
{ }
|
|
@@ -52,7 +48,7 @@ bool CPosixInterfaceForCLog::OpenLogFile(const std::string &logFilename, const s
|
|
(void)remove(backupOldLogToFilename.c_str()); // if it's failed, try to continue
|
|
(void)rename(logFilename.c_str(), backupOldLogToFilename.c_str()); // if it's failed, try to continue
|
|
|
|
- m_file = (FILEWRAP*)fopen(logFilename.c_str(), "wb");
|
|
+ m_file = fopen(logFilename.c_str(), "wb");
|
|
if (!m_file)
|
|
return false; // error, can't open log file
|
|
|
|
diff --git a/xbmc/utils/posix/PosixInterfaceForCLog.h b/xbmc/utils/posix/PosixInterfaceForCLog.h
|
|
index c1e8ffe..9999ead 100644
|
|
--- a/xbmc/utils/posix/PosixInterfaceForCLog.h
|
|
+++ b/xbmc/utils/posix/PosixInterfaceForCLog.h
|
|
@@ -21,8 +21,6 @@
|
|
|
|
#include <string>
|
|
|
|
-struct FILEWRAP; // forward declaration, wrapper for FILE
|
|
-
|
|
class CPosixInterfaceForCLog
|
|
{
|
|
public:
|
|
@@ -34,5 +32,5 @@ public:
|
|
void PrintDebugString(const std::string& debugString);
|
|
static void GetCurrentLocalTime(int& hour, int& minute, int& second, double& millisecond);
|
|
private:
|
|
- FILEWRAP* m_file;
|
|
+ FILE * m_file;
|
|
};
|