From: R. Steve McKown Date: Mon, 24 Sep 2012 14:23:28 +0000 (-0600) Subject: Rename handler() -> ini_handler() X-Git-Tag: 0.2 X-Git-Url: https://oss.titaniummirror.com/gitweb?p=repo_shell.git;a=commitdiff_plain;h=5c69e9df5b780ddc59f29074b8f007734f38ed1a Rename handler() -> ini_handler() --- 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