Search
j0ke.net Open Build Service
>
Projects
>
home:netmax
:
playground
>
ocsync
> iniparser_fed17.dif
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File iniparser_fed17.dif of Package ocsync (Revision 2)
Currently displaying revision
2
,
show latest
diff --git a/src/csync_config.c b/src/csync_config.c index 3fcc069..9d6834a 100644 --- a/src/csync_config.c +++ b/src/csync_config.c @@ -125,26 +125,26 @@ int csync_config_load(CSYNC *ctx, const char *config) { } } - dict = iniparser_load(config); + dict = iniparser_load((char*)config); if (dict == NULL) { return -1; } - ctx->options.max_depth = iniparser_getint(dict, "global:max_depth", MAX_DEPTH); + ctx->options.max_depth = iniparser_getint(dict, (char*)"global:max_depth", MAX_DEPTH); CSYNC_LOG(CSYNC_LOG_PRIORITY_TRACE, "Config: max_depth = %d", ctx->options.max_depth); ctx->options.max_time_difference = iniparser_getint(dict, - "global:max_time_difference", MAX_TIME_DIFFERENCE); + (char*)"global:max_time_difference", MAX_TIME_DIFFERENCE); CSYNC_LOG(CSYNC_LOG_PRIORITY_TRACE, "Config: max_time_difference = %d", ctx->options.max_time_difference); ctx->options.sync_symbolic_links = iniparser_getboolean(dict, - "global:sync_symbolic_links", 0); + (char*)"global:sync_symbolic_links", 0); CSYNC_LOG(CSYNC_LOG_PRIORITY_TRACE, "Config: sync_symbolic_links = %d", ctx->options.sync_symbolic_links); - ctx->options.timeout = iniparser_getint(dict, "global:timeout", 0); + ctx->options.timeout = iniparser_getint(dict, (char*)"global:timeout", 0); CSYNC_LOG(CSYNC_LOG_PRIORITY_TRACE, "Config: timeout = %d", ctx->options.timeout);