]> oss.titaniummirror.com Git - repo_shell.git/commitdiff
Rename handler() -> ini_handler() 0.2
authorR. Steve McKown <rsmckown@gmail.com>
Mon, 24 Sep 2012 14:23:28 +0000 (08:23 -0600)
committerR. Steve McKown <rsmckown@gmail.com>
Mon, 24 Sep 2012 14:23:28 +0000 (08:23 -0600)
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