summaryrefslogtreecommitdiffstats
path: root/src/internal.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2013-07-13 21:21:27 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-07-13 21:35:23 +0200
commit4dd0772911a2c92a43d4e4aecf305fba498be106 (patch)
tree0b40bca77b673de3102c8466d6b25ce07711fb99 /src/internal.h
parent013227cb6f13cbab2fbccbeb750199a051fd7a43 (diff)
expr: use __attribute__((constructor)) to register expression
Instead of manual array registration. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/internal.h')
-rw-r--r--src/internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/internal.h b/src/internal.h
index 803dcc4..773643b 100644
--- a/src/internal.h
+++ b/src/internal.h
@@ -78,4 +78,6 @@ struct nft_set_elem {
#define div_round_up(n, d) (((n) + (d) - 1) / (d))
+#define __init __attribute__((constructor))
+
#endif