From a8f46512c8cbd32e8bd85ac3982e5cf99d93013a Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Sun, 4 Nov 2007 18:47:18 +0000 Subject: Not using all defined protocols is not a hard error. Just print a warning but start anyway. OK reyk@ --- usr.sbin/hoststated/parse.y | 3 +-- usr.sbin/relayd/parse.y | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/usr.sbin/hoststated/parse.y b/usr.sbin/hoststated/parse.y index 8f1b36beb0e..d019a4449ee 100644 --- a/usr.sbin/hoststated/parse.y +++ b/usr.sbin/hoststated/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.75 2007/10/22 16:53:30 pyr Exp $ */ +/* $OpenBSD: parse.y,v 1.76 2007/11/04 18:47:17 claudio Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard @@ -1704,7 +1704,6 @@ parse_config(const char *filename, int opts) TAILQ_FOREACH(proto, &conf->protos, entry) { if (!(proto->flags & F_USED)) { log_warnx("unused protocol: %s", proto->name); - errors++; } } diff --git a/usr.sbin/relayd/parse.y b/usr.sbin/relayd/parse.y index 8f1b36beb0e..d019a4449ee 100644 --- a/usr.sbin/relayd/parse.y +++ b/usr.sbin/relayd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.75 2007/10/22 16:53:30 pyr Exp $ */ +/* $OpenBSD: parse.y,v 1.76 2007/11/04 18:47:17 claudio Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard @@ -1704,7 +1704,6 @@ parse_config(const char *filename, int opts) TAILQ_FOREACH(proto, &conf->protos, entry) { if (!(proto->flags & F_USED)) { log_warnx("unused protocol: %s", proto->name); - errors++; } } -- cgit v1.2.3