X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=repo_shell.c;h=a104602437f5552820f341247b5e0cfc61136163;hb=5c69e9df5b780ddc59f29074b8f007734f38ed1a;hp=ebcb246dbb315422655ab6c60cfac035e20358ff;hpb=c2887bb4f72772484806c5d02b33d32957ffb6f2;p=repo_shell.git diff --git a/repo_shell.c b/repo_shell.c index ebcb246..a104602 100644 --- a/repo_shell.c +++ b/repo_shell.c @@ -208,7 +208,7 @@ static struct commands { { NULL }, }; -static int handler(void* user, const char* section, const char* name, +static int ini_handler(void* user, const char* section, const char* name, const char* value) { cfg_t* pconfig = (cfg_t*)user; @@ -258,9 +258,9 @@ int main(int argc, char **argv) } #ifdef USE_DEFAULTS - ini_parse("repo_shell.cfg", handler, &cfg); + ini_parse("repo_shell.cfg", ini_handler, &cfg); #else - if (ini_parse(CFG_FILE, handler, &cfg) < 0) + if (ini_parse(CFG_FILE, ini_handler, &cfg) < 0) die("cannot read config file %s", CFG_FILE); #endif