Constify the value argument to mod_set_param
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user