summaryrefslogtreecommitdiffstats
path: root/lib/ipset_list_set.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ipset_list_set.c')
-rw-r--r--lib/ipset_list_set.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/ipset_list_set.c b/lib/ipset_list_set.c
index 67c29b6..dc0bf53 100644
--- a/lib/ipset_list_set.c
+++ b/lib/ipset_list_set.c
@@ -46,7 +46,7 @@ static const char list_set_usage[] =
"test SETNAME NAME [before|after NAME]\n\n"
"where NAME are existing set names.\n";
-struct ipset_type ipset_list_set0 = {
+static struct ipset_type ipset_list_set0 = {
.name = "list:set",
.alias = { "setlist", NULL },
.revision = 0,
@@ -89,3 +89,8 @@ struct ipset_type ipset_list_set0 = {
.usage = list_set_usage,
};
+
+void _init(void)
+{
+ ipset_type_add(&ipset_list_set0);
+}