Julia Lawall
549d2d41c1
netfilter: constify nf_loginfo structures
...
The nf_loginfo structures are only passed as the seventh argument to
nf_log_trace, which is declared as const or stored in a local const
variable. Thus the nf_loginfo structures themselves can be const.
Done with the help of Coccinelle.
// <smpl>
@r disable optional_qualifier@
identifier i;
position p;
@@
static struct nf_loginfo i@p = { ... };
@ok1@
identifier r.i;
expression list[6] es;
position p;
@@
nf_log_trace(es,&i@p,...)
@ok2@
identifier r.i;
const struct nf_loginfo *e;
position p;
@@
e = &i@p
@bad@
position p != {r.p,ok1.p,ok2.p};
identifier r.i;
struct nf_loginfo e;
@@
e@i@p
@depends on !bad disable optional_qualifier@
identifier r.i;
@@
static
+const
struct nf_loginfo i = { ... };
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr >
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org >
2017-08-02 14:25:59 +02:00
..
2017-08-02 14:25:59 +02:00
2017-07-17 09:52:58 -07:00
2017-06-23 14:17:31 -04:00
2017-06-16 11:48:39 -04:00
2017-07-04 01:29:04 -07:00
2015-07-29 22:44:04 -07:00
2017-07-01 07:39:08 -07:00
2017-04-19 07:48:57 +02:00
2017-07-01 07:39:08 -07:00
2017-07-20 15:24:45 -07:00
2017-05-30 11:55:32 -04:00
2017-03-10 09:45:09 -08:00
2017-03-16 10:18:34 -07:00
2017-07-04 01:29:04 -07:00
2017-07-04 01:29:04 -07:00
2017-05-21 13:42:36 -04:00
2016-06-30 05:03:36 -04:00
2017-07-17 09:52:58 -07:00
2017-06-15 11:59:32 -04:00
2017-07-01 07:39:08 -07:00
2017-07-01 07:39:08 -07:00
2017-01-13 22:37:16 -05:00
2017-07-01 07:39:09 -07:00
2017-07-03 03:29:14 -07:00
2017-07-01 07:39:08 -07:00
2017-07-17 08:59:01 -07:00
2016-11-03 16:10:26 -04:00
2017-07-01 07:39:09 -07:00
2017-06-26 23:13:22 -04:00
2017-03-24 13:17:07 -07:00
2016-12-24 11:46:01 -08:00
2017-07-21 03:38:43 +01:00
2017-06-30 02:04:09 -04:00
2017-06-25 11:42:01 -04:00
2017-06-16 12:01:29 -04:00
2017-07-18 11:13:41 -07:00
2015-04-03 12:11:15 -04:00
2017-06-16 11:48:35 -04:00
2017-06-26 23:13:22 -04:00
2017-07-12 08:18:46 -07:00
2017-02-16 21:25:49 -05:00
2017-06-15 12:12:40 -04:00
2017-02-28 12:49:36 +01:00
2017-07-01 07:39:08 -07:00
2017-06-08 11:26:19 -04:00
2017-03-24 13:17:07 -07:00
2016-11-03 15:25:26 -04:00
2017-07-01 07:39:08 -07:00
2017-07-15 12:44:02 -07:00
2017-07-18 11:22:51 -07:00
2017-06-15 12:12:40 -04:00
2017-07-15 14:43:29 -07:00
2017-05-17 16:06:01 -04:00
2017-03-02 08:42:27 +01:00
2017-07-01 16:15:14 -07:00
2017-05-17 16:06:01 -04:00
2016-12-06 11:34:24 -05:00
2016-08-23 23:11:36 -07:00
2017-07-01 16:15:14 -07:00
2016-11-21 13:20:17 -05:00
2017-05-17 16:06:01 -04:00
2016-11-21 13:20:17 -05:00
2016-11-21 13:20:17 -05:00
2017-07-01 16:15:14 -07:00
2017-07-06 10:54:15 +01:00
2017-05-17 16:06:01 -04:00
2017-05-17 16:06:01 -04:00
2017-07-01 16:15:13 -07:00
2017-05-21 13:42:36 -04:00
2017-07-01 07:39:08 -07:00
2017-07-19 16:14:10 -07:00
2017-02-21 13:26:03 -05:00
2017-06-15 12:12:40 -04:00
2017-07-19 16:14:10 -07:00
2016-11-21 13:20:17 -05:00
2017-05-24 16:29:57 -04:00
2017-06-23 14:10:05 -04:00
2016-11-21 13:20:17 -05:00
2016-05-11 14:43:19 -04:00
2016-11-21 13:20:17 -05:00
2017-05-17 16:06:01 -04:00
2016-11-21 13:20:17 -05:00
2017-07-01 16:15:14 -07:00
2016-07-11 13:27:06 -07:00
2017-07-01 07:39:08 -07:00
2017-05-18 10:23:33 -04:00
2017-07-17 09:52:58 -07:00
2016-06-17 20:23:32 -07:00
2017-07-18 12:00:13 -07:00
2016-11-24 15:32:14 -05:00
2017-02-15 11:04:11 +01:00
2017-06-16 11:48:39 -04:00
2017-04-14 10:07:39 +02:00
2017-04-14 10:07:39 +02:00
2017-04-14 10:06:10 +02:00
2017-07-18 11:13:41 -07:00
2017-02-09 10:22:17 +01:00
2017-01-10 10:57:12 +01:00
2013-05-31 17:19:05 -07:00