summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp_mm.c
diff options
context:
space:
mode:
Diffstat (limited to 'xrdp/xrdp_mm.c')
-rw-r--r--xrdp/xrdp_mm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/xrdp/xrdp_mm.c b/xrdp/xrdp_mm.c
index d023305b..6cabe582 100644
--- a/xrdp/xrdp_mm.c
+++ b/xrdp/xrdp_mm.c
@@ -491,8 +491,8 @@ static int APP_CC
xrdp_mm_setup_mod2(struct xrdp_mm *self, tui8 *guid)
{
char text[256];
- char *name;
- char *value;
+ const char *name;
+ const char *value;
int i;
int rv;
int key_flags;
@@ -562,7 +562,7 @@ xrdp_mm_setup_mod2(struct xrdp_mm *self, tui8 *guid)
/* always set these */
self->mod->mod_set_param(self->mod, "client_info",
- (char *)(self->wm->session->client_info));
+ (const char *) (self->wm->session->client_info));
name = self->wm->session->client_info->hostname;
self->mod->mod_set_param(self->mod, "hostname", name);
@@ -575,8 +575,8 @@ xrdp_mm_setup_mod2(struct xrdp_mm *self, tui8 *guid)
for (i = 0; i < self->login_names->count; i++)
{
- name = (char *)list_get_item(self->login_names, i);
- value = (char *)list_get_item(self->login_values, i);
+ name = (const char *) list_get_item(self->login_names, i);
+ value = (const char *) list_get_item(self->login_values, i);
self->mod->mod_set_param(self->mod, name, value);
}