]> oss.titaniummirror.com Git - repo_shell.git/blobdiff - repo_shell.c
Rename handler() -> ini_handler()
[repo_shell.git] / repo_shell.c
index ebcb246dbb315422655ab6c60cfac035e20358ff..a104602437f5552820f341247b5e0cfc61136163 100644 (file)
@@ -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