summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArushi Singhal <arushisinghal19971997@gmail.com>2017-03-30 14:34:05 +0530
committerPablo Neira Ayuso <pablo@netfilter.org>2017-04-07 20:34:52 +0200
commit27f69f4a1ee983bda0cc72198622fc3498e34ddb (patch)
treecd54e7141cce8d01c820b9ce5b424ee451382d31
parent340105fa8004503135d5792a64b8972b6a7bfdc0 (diff)
iptables: extensions: Remove typedef in struct.
The Linux kernel coding style guidelines suggest not using typedefs for structure. This patch gets rid of the typedefs for "_code". The following Coccinelle semantic patch detects the cases for struct type: @tn@ identifier i; type td; @@ -typedef struct i { ... } -td ; @@ type tn.td; identifier tn.i; @@ -td + struct i Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--extensions/libebt_log.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/libebt_log.c b/extensions/libebt_log.c
index 0799185d..f170af03 100644
--- a/extensions/libebt_log.c
+++ b/extensions/libebt_log.c
@@ -27,12 +27,12 @@
#define LOG_LOG '5'
#define LOG_IP6 '6'
-typedef struct _code {
+struct code {
char *c_name;
int c_val;
-} CODE;
+};
-static CODE eight_priority[] = {
+static struct code eight_priority[] = {
{ "emerg", LOG_EMERG },
{ "alert", LOG_ALERT },
{ "crit", LOG_CRIT },