Defaults are split between defines and conf_init(); normalize these, as

well as give 'sticky' groups its own variable.
This commit is contained in:
okan
2016-10-03 14:42:34 +00:00
parent 792f85cde9
commit 03f5dc219e
4 changed files with 13 additions and 20 deletions

9
conf.c
View File

@@ -254,9 +254,10 @@ conf_init(struct conf *c)
{
unsigned int i;
c->bwidth = CONF_BWIDTH;
c->mamount = CONF_MAMOUNT;
c->snapdist = CONF_SNAPDIST;
c->stickygroups = 0;
c->bwidth = 1;
c->mamount = 1;
c->snapdist = 0;
TAILQ_INIT(&c->ignoreq);
TAILQ_INIT(&c->cmdq);
@@ -279,7 +280,7 @@ conf_init(struct conf *c)
(void)snprintf(c->known_hosts, sizeof(c->known_hosts), "%s/%s",
homedir, ".ssh/known_hosts");
c->font = xstrdup(CONF_FONT);
c->font = xstrdup("sans-serif:pixelsize=14:bold");
}
void