}
static const struct option SET_opts[] = {
- {"add-set", 1, 0, '1'},
- {"del-set", 1, 0, '2'},
- {0}
+ {"add-set", 1, NULL, '1'},
+ {"del-set", 1, NULL, '2'},
+ { }
};
/* Initialize the target. */
}
static const struct option set_opts[] = {
- {"set", 1, 0, '1'},
- {0}
+ {"set", 1, NULL, '1'},
+ { }
};
/* Initialize the match. */
}
static const struct option CONNSECMARK_opts[] = {
- { "save", 0, 0, '1' },
- { "restore", 0, 0, '2' },
+ { "save", 0, NULL, '1' },
+ { "restore", 0, NULL, '2' },
{ .name = NULL }
};
}
static const struct option SECMARK_opts[] = {
- { "selctx", 1, 0, '1' },
+ { "selctx", 1, NULL, '1' },
{ .name = NULL }
};
return 1;
}
-struct xtables_match quota_match = {
+static struct xtables_match quota_match = {
.family = AF_UNSPEC,
.name = "quota",
.version = XTABLES_VERSION,
int c;
char curtable[IP6T_TABLE_MAXNAMELEN + 1];
FILE *in;
- const char *modprobe = 0;
+ const char *modprobe = NULL;
int in_table = 0, testing = 0;
program_name = "ip6tables-restore";
int c;
char curtable[IPT_TABLE_MAXNAMELEN + 1];
FILE *in;
- const char *modprobe = 0;
+ const char *modprobe = NULL;
int in_table = 0, testing = 0;
- const char *tablename = 0;
+ const char *tablename = NULL;
program_name = "iptables-restore";
program_version = XTABLES_VERSION;