From b8ed23daab023e1468b7ae98ffa7bd06176b1404 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Sun, 20 Nov 2016 09:55:32 -0800 Subject: Constify the value argument to mod_set_param --- xup/xup.c | 2 +- xup/xup.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'xup') diff --git a/xup/xup.c b/xup/xup.c index e2c34ca8..bff29727 100644 --- a/xup/xup.c +++ b/xup/xup.c @@ -1479,7 +1479,7 @@ lib_mod_end(struct mod *mod) /******************************************************************************/ /* return error */ int DEFAULT_CC -lib_mod_set_param(struct mod *mod, const char *name, char *value) +lib_mod_set_param(struct mod *mod, const char *name, const char *value) { if (g_strcasecmp(name, "username") == 0) { diff --git a/xup/xup.h b/xup/xup.h index 8c91996d..3e5c8e8d 100644 --- a/xup/xup.h +++ b/xup/xup.h @@ -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, const char *name, char* value); + int (*mod_set_param)(struct mod *v, const char *name, const 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); -- cgit v1.2.1