blob: 463a5c4f81bbc41c87947ab3337bb625e8c46425 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001From ad1977a358319093b305df6d84be6db676ef1e4a Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 6 Nov 2016 22:35:16 -0800
4Subject: [PATCH 02/10] Remove FILEWRAP
5
6Signed-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
12Index: 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
36Index: 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 };