summaryrefslogtreecommitdiffstats
path: root/vnc
diff options
context:
space:
mode:
authorPavel Roskin <plroskin@gmail.com>2016-11-20 09:55:32 -0800
committerJay Sorg <jay.sorg@gmail.com>2017-01-11 11:59:11 -0800
commitb8ed23daab023e1468b7ae98ffa7bd06176b1404 (patch)
tree7b1c928a28bbfd0cc7636ac364d8ffbe3882d85c /vnc
parenta959a9f85171af2915b2909fe070b2029e8da6fe (diff)
downloadxrdp-proprietary-b8ed23daab023e1468b7ae98ffa7bd06176b1404.tar.gz
xrdp-proprietary-b8ed23daab023e1468b7ae98ffa7bd06176b1404.zip
Constify the value argument to mod_set_param
Diffstat (limited to 'vnc')
-rw-r--r--vnc/vnc.c2
-rw-r--r--vnc/vnc.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/vnc/vnc.c b/vnc/vnc.c
index 1b1ae269..8b50b55c 100644
--- a/vnc/vnc.c
+++ b/vnc/vnc.c
@@ -1415,7 +1415,7 @@ lib_mod_end(struct vnc *v)
/******************************************************************************/
int DEFAULT_CC
-lib_mod_set_param(struct vnc *v, const char *name, char *value)
+lib_mod_set_param(struct vnc *v, const char *name, const char *value)
{
if (g_strcasecmp(name, "username") == 0)
{
diff --git a/vnc/vnc.h b/vnc/vnc.h
index 0bc3835d..3eee4e09 100644
--- a/vnc/vnc.h
+++ b/vnc/vnc.h
@@ -37,7 +37,7 @@ struct vnc
long param3, long param4);
int (*mod_signal)(struct vnc* v);
int (*mod_end)(struct vnc* v);
- int (*mod_set_param)(struct vnc* v, const char *name, char* value);
+ int (*mod_set_param)(struct vnc *v, const char *name, const char *value);
int (*mod_session_change)(struct vnc* v, int, int);
int (*mod_get_wait_objs)(struct vnc* v, tbus* read_objs, int* rcount,
tbus* write_objs, int* wcount, int* timeout);