General cleanup.
ok okan@.
This commit is contained in:
6
conf.c
6
conf.c
@@ -157,9 +157,9 @@ conf_init(struct conf *c)
|
||||
}
|
||||
|
||||
void
|
||||
conf_setup(struct conf *c, const char *conffile)
|
||||
conf_setup(struct conf *c, const char *conf_file)
|
||||
{
|
||||
if (conffile == NULL) {
|
||||
if (conf_file == NULL) {
|
||||
char *home = getenv("HOME");
|
||||
|
||||
if (home == NULL)
|
||||
@@ -168,7 +168,7 @@ conf_setup(struct conf *c, const char *conffile)
|
||||
snprintf(c->conf_path, sizeof(c->conf_path), "%s/%s", home,
|
||||
CONFFILE);
|
||||
} else
|
||||
snprintf(c->conf_path, sizeof(c->conf_path), "%s", conffile);
|
||||
snprintf(c->conf_path, sizeof(c->conf_path), "%s", conf_file);
|
||||
|
||||
conf_init(c);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user