diff options
author | Pavel Roskin <plroskin@gmail.com> | 2016-06-21 16:30:17 -0700 |
---|---|---|
committer | Pavel Roskin <plroskin@gmail.com> | 2016-07-08 04:29:42 +0000 |
commit | aeeb3d2c2e26677758a64db496c86020f99d2f1a (patch) | |
tree | 3337017e28744427743d447d4735c00537783321 /xup | |
parent | a680d46edf747ec17456b6b8e69c95bc4e4407cb (diff) | |
download | xrdp-proprietary-aeeb3d2c2e26677758a64db496c86020f99d2f1a.tar.gz xrdp-proprietary-aeeb3d2c2e26677758a64db496c86020f99d2f1a.zip |
Fix warnings detected by -Wwrite-strings
Diffstat (limited to 'xup')
-rw-r--r-- | xup/xup.c | 2 | ||||
-rw-r--r-- | xup/xup.h | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -1479,7 +1479,7 @@ lib_mod_end(struct mod *mod) /******************************************************************************/ /* return error */ int DEFAULT_CC -lib_mod_set_param(struct mod *mod, char *name, char *value) +lib_mod_set_param(struct mod *mod, const char *name, char *value) { if (g_strcasecmp(name, "username") == 0) { @@ -39,7 +39,7 @@ struct mod tbus param3, tbus param4); int (*mod_signal)(struct mod* v); int (*mod_end)(struct mod* v); - int (*mod_set_param)(struct mod* v, char* name, char* value); + int (*mod_set_param)(struct mod* v, const char *name, char* value); int (*mod_session_change)(struct mod* v, int, int); int (*mod_get_wait_objs)(struct mod* v, tbus* read_objs, int* rcount, tbus* write_objs, int* wcount, int* timeout); @@ -58,7 +58,7 @@ struct mod int srcx, int srcy); int (*server_set_cursor)(struct mod* v, int x, int y, char* data, char* mask); int (*server_palette)(struct mod* v, int* palette); - int (*server_msg)(struct mod* v, char* msg, int code); + int (*server_msg)(struct mod* v, const char *msg, int code); int (*server_is_term)(struct mod* v); int (*server_set_clip)(struct mod* v, int x, int y, int cx, int cy); int (*server_reset_clip)(struct mod* v); @@ -84,7 +84,7 @@ struct mod int (*server_query_channel)(struct mod* v, int index, char* channel_name, int* channel_flags); - int (*server_get_channel_id)(struct mod* v, char* name); + int (*server_get_channel_id)(struct mod* v, const char *name); int (*server_send_to_channel)(struct mod* v, int channel_id, char* data, int data_len, int total_data_len, int flags); |