summaryrefslogtreecommitdiffstats
path: root/userspace/ebtables2/include
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2005-10-01 20:12:50 +0000
committerBart De Schuymer <bdschuym@pandora.be>2005-10-01 20:12:50 +0000
commite1d621d9657b39ccf3f1141e0cd3a5aefa86da5f (patch)
treecb625943feb3212921e9bd2654323d1386ac6ddd /userspace/ebtables2/include
parent8e2210445721523b6197a2ba964493653d0f73b0 (diff)
minor changes
Diffstat (limited to 'userspace/ebtables2/include')
-rw-r--r--userspace/ebtables2/include/ebtables_u.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/userspace/ebtables2/include/ebtables_u.h b/userspace/ebtables2/include/ebtables_u.h
index b725625..7a47782 100644
--- a/userspace/ebtables2/include/ebtables_u.h
+++ b/userspace/ebtables2/include/ebtables_u.h
@@ -298,14 +298,14 @@ struct ethertypeent *parseethertypebynumber(int type);
#define ebt_to_chain(repl) \
({struct ebt_u_entries *_ch = NULL; \
-if (repl->selected_chain != -1) \
+if (repl->selected_chain != -1) \
_ch = repl->chains[repl->selected_chain]; \
_ch;})
#define ebt_print_bug(format, args...) \
__ebt_print_bug(__FILE__, __LINE__, format, ##args)
#define ebt_print_error(format,args...) __ebt_print_error(format, ##args);
-#define ebt_print_error2(format, args...) {__ebt_print_error(format, ##args); \
- return -1;}
+#define ebt_print_error2(format, args...) do {__ebt_print_error(format, ##args); \
+ return -1;} while (0)
#define ebt_check_option2(flags,mask) \
({ebt_check_option(flags,mask); \
if (ebt_errormsg[0] != '\0') \