diff options
author | Eric Leblond <eric@inl.fr> | 2008-06-12 11:15:14 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-06-12 11:15:14 +0200 |
commit | 2ea1541ce5bd9ca035d13a5ec778c555b9cb2069 (patch) | |
tree | 24017f7fb59c5643167c71727488518aff9ca8a5 /filter/ulogd_filter_MAC2STR.c | |
parent | 015849995f7f99f344ece11748a6e7b36ce07dd7 (diff) |
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 <eric@inl.fr>
Diffstat (limited to 'filter/ulogd_filter_MAC2STR.c')
-rw-r--r-- | filter/ulogd_filter_MAC2STR.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/ulogd_filter_MAC2STR.c b/filter/ulogd_filter_MAC2STR.c index 38d0565..0035886 100644 --- a/filter/ulogd_filter_MAC2STR.c +++ b/filter/ulogd_filter_MAC2STR.c @@ -74,7 +74,7 @@ static int interp_mac2str(struct ulogd_pluginstance *pi) int i; if (mac_str == NULL) - return -1; + return ULOGD_IRET_ERR; for (i = 0; i < len; i++) buf_cur += sprintf(buf_cur, "%02x%c", mac[i], @@ -84,7 +84,7 @@ static int interp_mac2str(struct ulogd_pluginstance *pi) ret[KEY_MAC_SADDR].flags |= ULOGD_RETF_VALID; } - return 0; + return ULOGD_IRET_OK; } static struct ulogd_plugin mac2str_pluging = { |