From 661f112072bc13a1625c4eb5983695e122ea97da Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 30 Jul 2007 14:46:51 +0000 Subject: Make the option structures const. Signed-off-by: Jan Engelhardt --- extensions/libipt_addrtype.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extensions/libipt_addrtype.c') diff --git a/extensions/libipt_addrtype.c b/extensions/libipt_addrtype.c index ed8b2046..f377e90d 100644 --- a/extensions/libipt_addrtype.c +++ b/extensions/libipt_addrtype.c @@ -12,7 +12,7 @@ #include /* from linux/rtnetlink.h, must match order of enumeration */ -static char *rtn_names[] = { +static const char *const rtn_names[] = { "UNSPEC", "UNICAST", "LOCAL", @@ -179,7 +179,7 @@ static void save(const void *ip, } } -static struct option opts[] = { +static const struct option opts[] = { { "src-type", 1, 0, '1' }, { "dst-type", 1, 0, '2' }, { 0 } -- cgit v1.2.3