From 62a186697df33c96dc1a6dac0f4dfc38652fb96f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 26 Dec 2021 16:39:04 +0300 Subject: BYTE -> uint8_t --- plugins/Spamotron/src/bayes.cpp | 8 ++++---- plugins/Spamotron/src/popups.cpp | 4 ++-- plugins/Spamotron/src/stdafx.h | 6 +++--- plugins/Spamotron/src/utils.cpp | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) (limited to 'plugins/Spamotron/src') diff --git a/plugins/Spamotron/src/bayes.cpp b/plugins/Spamotron/src/bayes.cpp index 9b6c1874a7..b9a9fe376b 100644 --- a/plugins/Spamotron/src/bayes.cpp +++ b/plugins/Spamotron/src/bayes.cpp @@ -96,9 +96,9 @@ int OpenBayes() return 0; } -char *tokenhash(const char *token, BYTE *digest) +char *tokenhash(const char *token, uint8_t *digest) { - mir_md5_hash((BYTE *)token, (int)mir_strlen(token), digest); + mir_md5_hash((uint8_t *)token, (int)mir_strlen(token), digest); return (char*)digest; } @@ -160,7 +160,7 @@ int get_token_score(int type, char *token) { char sql[200]; int score = 0; - BYTE digest[16]; + uint8_t digest[16]; sqlite3_stmt *stmt; if (bayesdb == nullptr) @@ -309,7 +309,7 @@ void dequeue_messages() void learn(int type, wchar_t *msg) { char *tok, *message; - BYTE digest[16]; + uint8_t digest[16]; char sql_select[200], sql_update[200], sql_insert[200], sql_counter[200]; sqlite3_stmt *stmt; #ifdef _DEBUG diff --git a/plugins/Spamotron/src/popups.cpp b/plugins/Spamotron/src/popups.cpp index c5cdcbe5f0..70336e9bd8 100644 --- a/plugins/Spamotron/src/popups.cpp +++ b/plugins/Spamotron/src/popups.cpp @@ -143,7 +143,7 @@ INT_PTR CALLBACK DlgProcOptionsPopups(HWND optDlg, UINT msg, WPARAM wParam, LPAR return FALSE; } -int ShowPopupPreview(HWND optDlg, BYTE popupType, wchar_t *line1, wchar_t *line2) +int ShowPopupPreview(HWND optDlg, uint8_t popupType, wchar_t *line1, wchar_t *line2) { POPUPDATAW ppd; switch (popupType) @@ -191,7 +191,7 @@ int ShowPopupPreview(HWND optDlg, BYTE popupType, wchar_t *line1, wchar_t *line2 return (int)PUAddPopupW(&ppd); } -int ShowPopup(MCONTACT hContact, BYTE popupType, wchar_t *line1, wchar_t *line2) +int ShowPopup(MCONTACT hContact, uint8_t popupType, wchar_t *line1, wchar_t *line2) { POPUPDATAW ppd; switch (popupType) diff --git a/plugins/Spamotron/src/stdafx.h b/plugins/Spamotron/src/stdafx.h index a046076b0e..98a18700c7 100644 --- a/plugins/Spamotron/src/stdafx.h +++ b/plugins/Spamotron/src/stdafx.h @@ -94,9 +94,9 @@ BOOL Contains(wchar_t* dst, wchar_t* src); BOOL isOneDay(DWORD timestamp1, DWORD timestamp2); void MarkUnread(MCONTACT hContact); -int ShowPopup(MCONTACT hContact, BYTE popupType, wchar_t *line1, wchar_t *line2); -int ShowPopupPreview(HWND optDlg, BYTE popupType, wchar_t *line1, wchar_t *line2); -int _notify(MCONTACT hContact, BYTE type, wchar_t *message, wchar_t *origmessage); +int ShowPopup(MCONTACT hContact, uint8_t popupType, wchar_t *line1, wchar_t *line2); +int ShowPopupPreview(HWND optDlg, uint8_t popupType, wchar_t *line1, wchar_t *line2); +int _notify(MCONTACT hContact, uint8_t type, wchar_t *message, wchar_t *origmessage); int LogToSystemHistory(char *message, char *origmessage); #define POPUP_DEFAULT 0 #define POPUP_BLOCKED 1 diff --git a/plugins/Spamotron/src/utils.cpp b/plugins/Spamotron/src/utils.cpp index d34d7ee5f7..c29132d7b7 100644 --- a/plugins/Spamotron/src/utils.cpp +++ b/plugins/Spamotron/src/utils.cpp @@ -423,7 +423,7 @@ err_out: return dst; } -int _notify(MCONTACT hContact, BYTE type, wchar_t *message, wchar_t *origmessage) +int _notify(MCONTACT hContact, uint8_t type, wchar_t *message, wchar_t *origmessage) { char *tmp, *tmporig; wchar_t msg[MAX_BUFFER_LENGTH]; -- cgit v1.2.3