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/HTTPServer/src/Glob.h | 2 +- plugins/HTTPServer/src/GuiElements.cpp | 2 +- plugins/HTTPServer/src/main.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/HTTPServer/src') diff --git a/plugins/HTTPServer/src/Glob.h b/plugins/HTTPServer/src/Glob.h index 3b913cc840..d688dbe351 100644 --- a/plugins/HTTPServer/src/Glob.h +++ b/plugins/HTTPServer/src/Glob.h @@ -55,7 +55,7 @@ using namespace std; #define MODULENAME "HTTPServer" #define MSG_BOX_TITLE "Miranda NG HTTP-Server" -#define SplitIpAddress( p ) (BYTE)(p>>24),(BYTE)(p>>16),(BYTE)(p>>8),(BYTE)(p) +#define SplitIpAddress( p ) (uint8_t)(p>>24),(uint8_t)(p>>16),(uint8_t)(p>>8),(uint8_t)(p) struct CMPlugin : public PLUGIN { diff --git a/plugins/HTTPServer/src/GuiElements.cpp b/plugins/HTTPServer/src/GuiElements.cpp index ab8219230f..f554f3f37b 100644 --- a/plugins/HTTPServer/src/GuiElements.cpp +++ b/plugins/HTTPServer/src/GuiElements.cpp @@ -1253,7 +1253,7 @@ static INT_PTR CALLBACK OptionsDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LP indexCreationMode = INDEX_CREATION_DISABLE; } - g_plugin.setByte("IndexCreationMode", (BYTE)indexCreationMode); + g_plugin.setByte("IndexCreationMode", (uint8_t)indexCreationMode); return TRUE; } diff --git a/plugins/HTTPServer/src/main.cpp b/plugins/HTTPServer/src/main.cpp index 16c328fbf9..e8f227172d 100644 --- a/plugins/HTTPServer/src/main.cpp +++ b/plugins/HTTPServer/src/main.cpp @@ -770,7 +770,7 @@ int nSystemShutdown(WPARAM /*wparam*/, LPARAM /*lparam*/) } pclFirstNode = nullptr; - g_plugin.setByte("IndexCreationMode", (BYTE)indexCreationMode); + g_plugin.setByte("IndexCreationMode", (uint8_t)indexCreationMode); FreeIndexHTMLTemplate(); return 0; } @@ -834,7 +834,7 @@ int CMPlugin::Load() if (indexCreationMode == INDEX_CREATION_HTML || indexCreationMode == INDEX_CREATION_DETECT) if (!LoadIndexHTMLTemplate()) { indexCreationMode = INDEX_CREATION_DISABLE; - g_plugin.setByte("IndexCreationMode", (BYTE)indexCreationMode); + g_plugin.setByte("IndexCreationMode", (uint8_t)indexCreationMode); } HookEvent(ME_OPT_INITIALISE, OptionsInitialize); -- cgit v1.2.3