redmine

Fixed a warning while building

main.c:1592:22: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
  ctx_p->config_block = config_block_name;
... ... @@ -234,7 +234,7 @@ struct ctx {
int flags_set[OPTION_FLAGS];
#ifndef LIBCLSYNC
char *config_path;
char *config_block;
const char *config_block;
char *customsignal[MAXSIGNALNUM+1];
char *label;
char *watchdir;
... ...
... ... @@ -1011,7 +1011,7 @@ int arguments_parse(int argc, char *argv[], struct ctx *ctx_p) {
void gkf_parse(ctx_t *ctx_p, GKeyFile *gkf, paramsource_t paramsource) {
debug(9, "");
char *config_block = ctx_p->config_block;
char *config_block = (char *)ctx_p->config_block;
do {
const struct option *lo_ptr = long_options;
... ...