Fixed const/type warnings

This commit is contained in:
Armin Novak 2022-02-01 08:17:56 +01:00 committed by akallabeth
parent 02896b0656
commit a403848e61
2 changed files with 10 additions and 2 deletions

View File

@ -747,8 +747,16 @@ size_t pf_config_modules_count(const proxyConfig* config)
const char** pf_config_modules(const proxyConfig* config)
{
union
{
char** ppc;
const char** cppc;
} cnv;
WINPR_ASSERT(config);
return (const char**)config->Modules;
cnv.ppc = config->Modules;
return cnv.cppc;
}
static BOOL pf_config_copy_string(char** dst, const char* src)

View File

@ -343,7 +343,7 @@ static BOOL x11_shadow_input_extended_mouse_event(rdpShadowSubsystem* subsystem,
{
#ifdef WITH_XTEST
x11ShadowSubsystem* x11 = (x11ShadowSubsystem*)subsystem;
int button = 0;
UINT button = 0;
BOOL down = FALSE;
rdpShadowServer* server;
rdpShadowSurface* surface;