Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | From ad1977a358319093b305df6d84be6db676ef1e4a Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Sun, 6 Nov 2016 22:35:16 -0800 |
| 4 | Subject: [PATCH 02/10] Remove FILEWRAP |
| 5 | |
| 6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 7 | --- |
| 8 | xbmc/utils/posix/PosixInterfaceForCLog.cpp | 6 +----- |
| 9 | xbmc/utils/posix/PosixInterfaceForCLog.h | 4 +--- |
| 10 | 2 files changed, 2 insertions(+), 8 deletions(-) |
| 11 | |
| 12 | Index: git/xbmc/utils/posix/PosixInterfaceForCLog.cpp |
| 13 | =================================================================== |
| 14 | --- git.orig/xbmc/utils/posix/PosixInterfaceForCLog.cpp |
| 15 | +++ git/xbmc/utils/posix/PosixInterfaceForCLog.cpp |
| 16 | @@ -29,10 +29,6 @@ |
| 17 | #include "platform/android/activity/XBMCApp.h" |
| 18 | #endif // TARGET_ANDROID |
| 19 | |
| 20 | -struct FILEWRAP : public FILE |
| 21 | -{}; |
| 22 | - |
| 23 | - |
| 24 | CPosixInterfaceForCLog::CPosixInterfaceForCLog() : |
| 25 | m_file(NULL) |
| 26 | { } |
| 27 | @@ -52,7 +48,7 @@ bool CPosixInterfaceForCLog::OpenLogFile |
| 28 | (void)remove(backupOldLogToFilename.c_str()); // if it's failed, try to continue |
| 29 | (void)rename(logFilename.c_str(), backupOldLogToFilename.c_str()); // if it's failed, try to continue |
| 30 | |
| 31 | - m_file = (FILEWRAP*)fopen(logFilename.c_str(), "wb"); |
| 32 | + m_file = fopen(logFilename.c_str(), "wb"); |
| 33 | if (!m_file) |
| 34 | return false; // error, can't open log file |
| 35 | |
| 36 | Index: git/xbmc/utils/posix/PosixInterfaceForCLog.h |
| 37 | =================================================================== |
| 38 | --- git.orig/xbmc/utils/posix/PosixInterfaceForCLog.h |
| 39 | +++ git/xbmc/utils/posix/PosixInterfaceForCLog.h |
| 40 | @@ -34,5 +34,5 @@ public: |
| 41 | void PrintDebugString(const std::string& debugString); |
| 42 | static void GetCurrentLocalTime(int& hour, int& minute, int& second, double& millisecond); |
| 43 | private: |
| 44 | - FILEWRAP* m_file; |
| 45 | + FILE* m_file; |
| 46 | }; |