From patchwork Wed Jun 13 04:08:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2/2] hostapd: return error value on configuration check failure From: Baruch Siach X-Patchwork-Id: 164521 Message-Id: <4b4badf3bc97ab29f315fbd71b03c88d3da59e43.1339560456.git.baruch@tkos.co.il> To: hostap@lists.shmoo.com Date: Wed, 13 Jun 2012 07:08:53 +0300 Don't count errors since the number isn't used anyway. Signed-hostap: Baruch Siach --- hostapd/config_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hostapd/config_file.c b/hostapd/config_file.c index 65a53fe..6729e5c 100644 --- a/hostapd/config_file.c +++ b/hostapd/config_file.c @@ -2490,7 +2490,7 @@ int hostapd_set_iface(struct hostapd_config *conf, if (hostapd_config_check(conf)) { wpa_printf(MSG_ERROR, "Configuration check failed"); - errors++; + return -1; } return 0;