From 4cb9b524e74bf3eb9715b232c8a0261624e35869 Mon Sep 17 00:00:00 2001 From: okan Date: Mon, 3 Oct 2016 14:42:34 +0000 Subject: Defaults are split between defines and conf_init(); normalize these, as well as give 'sticky' groups its own variable. --- conf.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'conf.c') diff --git a/conf.c b/conf.c index 3745326..8443009 100644 --- a/conf.c +++ b/conf.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: conf.c,v 1.208 2016/09/30 18:28:06 okan Exp $ + * $OpenBSD: conf.c,v 1.209 2016/10/03 14:42:34 okan Exp $ */ #include @@ -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 -- cgit v1.2.3-2-gb3c3