Patchwork [6/7] logemu: return error if configuration is invalid.

login
register
mail settings
Submitter Eric Leblond
Date Feb. 18, 2013, 8:37 a.m.
Message ID <1361176668-22661-7-git-send-email-eric@regit.org>
Download mbox | patch
Permalink /patch/221158/
State Accepted
Headers show

Comments

Eric Leblond - Feb. 18, 2013, 8:37 a.m.
Signed-off-by: Eric Leblond <eric@regit.org>
---
 output/ulogd_output_LOGEMU.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

Patch

diff --git a/output/ulogd_output_LOGEMU.c b/output/ulogd_output_LOGEMU.c
index 26f139b..bb27209 100644
--- a/output/ulogd_output_LOGEMU.c
+++ b/output/ulogd_output_LOGEMU.c
@@ -177,11 +177,8 @@  static int fini_logemu(struct ulogd_pluginstance *pi) {
 static int configure_logemu(struct ulogd_pluginstance *pi,
 			    struct ulogd_pluginstance_stack *stack)
 {
-	/* FIXME: error handling */
 	ulogd_log(ULOGD_DEBUG, "parsing config file section %s\n", pi->id);
-	config_parse_file(pi->id, pi->config_kset);
-
-	return 0;
+	return config_parse_file(pi->id, pi->config_kset);
 }
 
 static struct ulogd_plugin logemu_plugin = {