From 2ea1541ce5bd9ca035d13a5ec778c555b9cb2069 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Thu, 12 Jun 2008 11:15:14 +0200 Subject: Use ULOGD_IRET_* as return for all interpreters This patch modifies plugins to use the already defined but not used define. This also fixes some weird behaviours in error treatment (like not stopping after OOM). Signed-off-by: Eric Leblond --- filter/ulogd_filter_PRINTFLOW.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'filter/ulogd_filter_PRINTFLOW.c') diff --git a/filter/ulogd_filter_PRINTFLOW.c b/filter/ulogd_filter_PRINTFLOW.c index 181c09e..b78c37b 100644 --- a/filter/ulogd_filter_PRINTFLOW.c +++ b/filter/ulogd_filter_PRINTFLOW.c @@ -39,7 +39,7 @@ static int printflow_interp(struct ulogd_pluginstance *upi) printflow_print(inp, buf); ret[0].u.value.ptr = buf; ret[0].flags |= ULOGD_RETF_VALID; - return 0; + return ULOGD_IRET_OK; } static struct ulogd_plugin printflow_plugin = { -- cgit v1.2.3