libfreerdp: core: fix const correctness of freerdp_settings_clone

This commit is contained in:
kubistika 2019-07-17 15:51:11 +03:00 committed by akallabeth
parent c0ff7b1fca
commit 13fb3ffc39
2 changed files with 2 additions and 2 deletions

View File

@ -1558,7 +1558,7 @@ extern "C" {
#define FREERDP_SETTINGS_SERVER_MODE 0x00000001
FREERDP_API rdpSettings* freerdp_settings_new(DWORD flags);
FREERDP_API rdpSettings* freerdp_settings_clone(rdpSettings* settings);
FREERDP_API rdpSettings* freerdp_settings_clone(const rdpSettings* settings);
FREERDP_API BOOL freerdp_settings_copy(rdpSettings* dst, const rdpSettings* src);
FREERDP_API void freerdp_settings_free(rdpSettings* settings);

View File

@ -1129,7 +1129,7 @@ out_fail:
return FALSE;
}
rdpSettings* freerdp_settings_clone(rdpSettings* settings)
rdpSettings* freerdp_settings_clone(const rdpSettings* settings)
{
rdpSettings* _settings = (rdpSettings*) calloc(1, sizeof(rdpSettings));