diff options
author | Philippe De Muyter <phdm@macqel.be> | 2007-07-11 02:07:31 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-07-11 02:07:31 -0400 |
commit | 56b3d975bbce65f655c5612b4822da671f9fd9b2 (patch) | |
tree | 7e29d70405d9c8e28ddee3b03a07157477fc780f /net/netfilter | |
parent | 3be550f34b03e5eb762f74d447ebbeba97efbd6d (diff) |
[NET]: Make all initialized struct seq_operations const.
Make all initialized struct seq_operations in net/ const
Signed-off-by: Philippe De Muyter <phdm@macqel.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter')
-rw-r--r-- | net/netfilter/nf_conntrack_expect.c | 2 | ||||
-rw-r--r-- | net/netfilter/nf_conntrack_standalone.c | 4 | ||||
-rw-r--r-- | net/netfilter/nf_log.c | 2 | ||||
-rw-r--r-- | net/netfilter/nf_queue.c | 2 | ||||
-rw-r--r-- | net/netfilter/nfnetlink_log.c | 2 | ||||
-rw-r--r-- | net/netfilter/nfnetlink_queue.c | 2 | ||||
-rw-r--r-- | net/netfilter/x_tables.c | 2 | ||||
-rw-r--r-- | net/netfilter/xt_hashlimit.c | 2 |
8 files changed, 9 insertions, 9 deletions
diff --git a/net/netfilter/nf_conntrack_expect.c b/net/netfilter/nf_conntrack_expect.c index 513828fdaa2c..2191fe008f60 100644 --- a/net/netfilter/nf_conntrack_expect.c +++ b/net/netfilter/nf_conntrack_expect.c | |||
@@ -464,7 +464,7 @@ static int exp_seq_show(struct seq_file *s, void *v) | |||
464 | return seq_putc(s, '\n'); | 464 | return seq_putc(s, '\n'); |
465 | } | 465 | } |
466 | 466 | ||
467 | static struct seq_operations exp_seq_ops = { | 467 | static const struct seq_operations exp_seq_ops = { |
468 | .start = exp_seq_start, | 468 | .start = exp_seq_start, |
469 | .next = exp_seq_next, | 469 | .next = exp_seq_next, |
470 | .stop = exp_seq_stop, | 470 | .stop = exp_seq_stop, |
diff --git a/net/netfilter/nf_conntrack_standalone.c b/net/netfilter/nf_conntrack_standalone.c index 54498bcfa862..ffb6ff8c3528 100644 --- a/net/netfilter/nf_conntrack_standalone.c +++ b/net/netfilter/nf_conntrack_standalone.c | |||
@@ -185,7 +185,7 @@ static int ct_seq_show(struct seq_file *s, void *v) | |||
185 | return 0; | 185 | return 0; |
186 | } | 186 | } |
187 | 187 | ||
188 | static struct seq_operations ct_seq_ops = { | 188 | static const struct seq_operations ct_seq_ops = { |
189 | .start = ct_seq_start, | 189 | .start = ct_seq_start, |
190 | .next = ct_seq_next, | 190 | .next = ct_seq_next, |
191 | .stop = ct_seq_stop, | 191 | .stop = ct_seq_stop, |
@@ -289,7 +289,7 @@ static int ct_cpu_seq_show(struct seq_file *seq, void *v) | |||
289 | return 0; | 289 | return 0; |
290 | } | 290 | } |
291 | 291 | ||
292 | static struct seq_operations ct_cpu_seq_ops = { | 292 | static const struct seq_operations ct_cpu_seq_ops = { |
293 | .start = ct_cpu_seq_start, | 293 | .start = ct_cpu_seq_start, |
294 | .next = ct_cpu_seq_next, | 294 | .next = ct_cpu_seq_next, |
295 | .stop = ct_cpu_seq_stop, | 295 | .stop = ct_cpu_seq_stop, |
diff --git a/net/netfilter/nf_log.c b/net/netfilter/nf_log.c index 91b220cf5a1f..94985792b79a 100644 --- a/net/netfilter/nf_log.c +++ b/net/netfilter/nf_log.c | |||
@@ -140,7 +140,7 @@ static int seq_show(struct seq_file *s, void *v) | |||
140 | return seq_printf(s, "%2lld %s\n", *pos, logger->name); | 140 | return seq_printf(s, "%2lld %s\n", *pos, logger->name); |
141 | } | 141 | } |
142 | 142 | ||
143 | static struct seq_operations nflog_seq_ops = { | 143 | static const struct seq_operations nflog_seq_ops = { |
144 | .start = seq_start, | 144 | .start = seq_start, |
145 | .next = seq_next, | 145 | .next = seq_next, |
146 | .stop = seq_stop, | 146 | .stop = seq_stop, |
diff --git a/net/netfilter/nf_queue.c b/net/netfilter/nf_queue.c index 823fbf404566..a481a349f7bf 100644 --- a/net/netfilter/nf_queue.c +++ b/net/netfilter/nf_queue.c | |||
@@ -330,7 +330,7 @@ static int seq_show(struct seq_file *s, void *v) | |||
330 | return ret; | 330 | return ret; |
331 | } | 331 | } |
332 | 332 | ||
333 | static struct seq_operations nfqueue_seq_ops = { | 333 | static const struct seq_operations nfqueue_seq_ops = { |
334 | .start = seq_start, | 334 | .start = seq_start, |
335 | .next = seq_next, | 335 | .next = seq_next, |
336 | .stop = seq_stop, | 336 | .stop = seq_stop, |
diff --git a/net/netfilter/nfnetlink_log.c b/net/netfilter/nfnetlink_log.c index e32e30e7a17c..e185a5b55913 100644 --- a/net/netfilter/nfnetlink_log.c +++ b/net/netfilter/nfnetlink_log.c | |||
@@ -962,7 +962,7 @@ static int seq_show(struct seq_file *s, void *v) | |||
962 | inst->flushtimeout, atomic_read(&inst->use)); | 962 | inst->flushtimeout, atomic_read(&inst->use)); |
963 | } | 963 | } |
964 | 964 | ||
965 | static struct seq_operations nful_seq_ops = { | 965 | static const struct seq_operations nful_seq_ops = { |
966 | .start = seq_start, | 966 | .start = seq_start, |
967 | .next = seq_next, | 967 | .next = seq_next, |
968 | .stop = seq_stop, | 968 | .stop = seq_stop, |
diff --git a/net/netfilter/nfnetlink_queue.c b/net/netfilter/nfnetlink_queue.c index 7d47fc4b19c6..bb65a38c816c 100644 --- a/net/netfilter/nfnetlink_queue.c +++ b/net/netfilter/nfnetlink_queue.c | |||
@@ -1048,7 +1048,7 @@ static int seq_show(struct seq_file *s, void *v) | |||
1048 | atomic_read(&inst->use)); | 1048 | atomic_read(&inst->use)); |
1049 | } | 1049 | } |
1050 | 1050 | ||
1051 | static struct seq_operations nfqnl_seq_ops = { | 1051 | static const struct seq_operations nfqnl_seq_ops = { |
1052 | .start = seq_start, | 1052 | .start = seq_start, |
1053 | .next = seq_next, | 1053 | .next = seq_next, |
1054 | .stop = seq_stop, | 1054 | .stop = seq_stop, |
diff --git a/net/netfilter/x_tables.c b/net/netfilter/x_tables.c index 520eddf4d61b..cc2baa6d5a7a 100644 --- a/net/netfilter/x_tables.c +++ b/net/netfilter/x_tables.c | |||
@@ -745,7 +745,7 @@ static int xt_name_seq_show(struct seq_file *seq, void *v) | |||
745 | return 0; | 745 | return 0; |
746 | } | 746 | } |
747 | 747 | ||
748 | static struct seq_operations xt_tgt_seq_ops = { | 748 | static const struct seq_operations xt_tgt_seq_ops = { |
749 | .start = xt_tgt_seq_start, | 749 | .start = xt_tgt_seq_start, |
750 | .next = xt_tgt_seq_next, | 750 | .next = xt_tgt_seq_next, |
751 | .stop = xt_tgt_seq_stop, | 751 | .stop = xt_tgt_seq_stop, |
diff --git a/net/netfilter/xt_hashlimit.c b/net/netfilter/xt_hashlimit.c index 5a6ea9b9108c..d6b3d01975b6 100644 --- a/net/netfilter/xt_hashlimit.c +++ b/net/netfilter/xt_hashlimit.c | |||
@@ -701,7 +701,7 @@ static int dl_seq_show(struct seq_file *s, void *v) | |||
701 | return 0; | 701 | return 0; |
702 | } | 702 | } |
703 | 703 | ||
704 | static struct seq_operations dl_seq_ops = { | 704 | static const struct seq_operations dl_seq_ops = { |
705 | .start = dl_seq_start, | 705 | .start = dl_seq_start, |
706 | .next = dl_seq_next, | 706 | .next = dl_seq_next, |
707 | .stop = dl_seq_stop, | 707 | .stop = dl_seq_stop, |