Commit 552d514d authored by Magnus Svensson's avatar Magnus Svensson

Fix VS8 build error

parent 4202897d
...@@ -487,7 +487,7 @@ void free_all_replace(){ ...@@ -487,7 +487,7 @@ void free_all_replace(){
class LogFile { class LogFile {
FILE* m_file; FILE* m_file;
char m_file_name[FN_REFLEN]; char m_file_name[FN_REFLEN];
uint m_bytes_written; size_t m_bytes_written;
public: public:
LogFile() : m_file(NULL), m_bytes_written(0) { LogFile() : m_file(NULL), m_bytes_written(0) {
bzero(m_file_name, sizeof(m_file_name)); bzero(m_file_name, sizeof(m_file_name));
...@@ -498,7 +498,7 @@ class LogFile { ...@@ -498,7 +498,7 @@ class LogFile {
} }
const char* file_name() const { return m_file_name; } const char* file_name() const { return m_file_name; }
uint bytes_written() const { return m_bytes_written; } size_t bytes_written() const { return m_bytes_written; }
void open(const char* dir, const char* name, const char* ext) void open(const char* dir, const char* name, const char* ext)
{ {
...@@ -5972,7 +5972,7 @@ void fix_win_paths(const char *val, int len) ...@@ -5972,7 +5972,7 @@ void fix_win_paths(const char *val, int len)
DBUG_PRINT("info", ("pattern: %s", *pattern)); DBUG_PRINT("info", ("pattern: %s", *pattern));
/* Search for the path in string */ /* Search for the path in string */
while ((p= strstr(val, *pattern))) while ((p= strstr((char*)val, *pattern)))
{ {
DBUG_PRINT("info", ("Found %s in val p: %s", *pattern, p)); DBUG_PRINT("info", ("Found %s in val p: %s", *pattern, p));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment