diff -ru spamprobe-1.4d/src/database/HashDataFile.h spamprobe-1.4d-jishac-patch/src/database/HashDataFile.h --- spamprobe-1.4d/src/database/HashDataFile.h 2006-11-17 02:24:48.000000000 -0500 +++ spamprobe-1.4d-jishac-patch/src/database/HashDataFile.h 2021-01-10 21:00:27.474524866 -0500 @@ -93,7 +93,7 @@ bool isReadOnly() const { - m_isReadOnly; + return m_isReadOnly; } int createMode() const diff -ru spamprobe-1.4d/src/includes/Message.h spamprobe-1.4d-jishac-patch/src/includes/Message.h --- spamprobe-1.4d/src/includes/Message.h 2006-11-17 02:24:48.000000000 -0500 +++ spamprobe-1.4d-jishac-patch/src/includes/Message.h 2021-01-10 21:01:54.234648878 -0500 @@ -109,7 +109,7 @@ m_source.set(source); } - void setMaxTokenCount(int value) + void setMaxTokenCount(unsigned int value) { m_maxTokenCount = value; } @@ -136,7 +136,7 @@ map m_tokensByName; vector m_topTokens; Ptr m_source; - int m_maxTokenCount; + unsigned int m_maxTokenCount; }; #endif // _Message_h diff -ru spamprobe-1.4d/src/parser/GifParser.cc spamprobe-1.4d-jishac-patch/src/parser/GifParser.cc --- spamprobe-1.4d/src/parser/GifParser.cc 2021-01-10 21:06:25.000000000 -0500 +++ spamprobe-1.4d-jishac-patch/src/parser/GifParser.cc 2021-01-10 21:02:32.850704274 -0500 @@ -94,6 +94,7 @@ } catch (runtime_error &ex) { return false; } + return true; } void GifParser::openImage() diff -ru spamprobe-1.4d/src/parser/JpegParser.cc spamprobe-1.4d-jishac-patch/src/parser/JpegParser.cc --- spamprobe-1.4d/src/parser/JpegParser.cc 2006-11-17 02:11:08.000000000 -0500 +++ spamprobe-1.4d-jishac-patch/src/parser/JpegParser.cc 2021-01-10 21:02:52.730732835 -0500 @@ -64,6 +64,7 @@ } catch (runtime_error &ex) { return false; } + return true; } void JpegParser::tokenizeMarker(const string &base_token, @@ -73,7 +74,7 @@ prefix += num_to_string(marker->marker); prefix += "_"; string token; - for (int i = 0; i < marker->data_length; ++i) { + for (unsigned int i = 0; i < marker->data_length; ++i) { char ch = (char)marker->data[i]; if (isprint(ch)) { token += ch; diff -ru spamprobe-1.4d/src/parser/MessageHeaderList.cc spamprobe-1.4d-jishac-patch/src/parser/MessageHeaderList.cc --- spamprobe-1.4d/src/parser/MessageHeaderList.cc 2006-11-17 02:24:49.000000000 -0500 +++ spamprobe-1.4d-jishac-patch/src/parser/MessageHeaderList.cc 2021-01-10 21:03:05.874751734 -0500 @@ -39,7 +39,7 @@ CRef MessageHeaderList::header(const string &name) const { MultiLineStringList values; - for (int i = 0; i < m_headers.size(); ++i) { + for (long unsigned int i = 0; i < m_headers.size(); ++i) { if (m_headers[i]->hasName(name)) { values.push_back(m_headers[i]->lines()); } diff -ru spamprobe-1.4d/src/parser/PngParser.cc spamprobe-1.4d-jishac-patch/src/parser/PngParser.cc --- spamprobe-1.4d/src/parser/PngParser.cc 2021-01-10 21:06:25.000000000 -0500 +++ spamprobe-1.4d-jishac-patch/src/parser/PngParser.cc 2021-01-10 21:03:30.866787701 -0500 @@ -38,11 +38,11 @@ #include "PngParser.h" #ifndef int_p_NULL -#define int_p_NULL NULL +#define int_p_NULL (int*)NULL #endif #ifndef png_infopp_NULL -#define png_infopp_NULL NULL +#define png_infopp_NULL (png_infopp)NULL #endif PngParser::PngParser(Message *message, @@ -76,6 +76,7 @@ } catch (runtime_error &ex) { return false; } + return true; } void PngParser::initializeImage()