Re: [ovs-dev] [PATCH v2 3/5] classifier: Constify fields.

2014-11-06 Thread Jarno Rajahalme
On Nov 6, 2014, at 11:25 AM, Ben Pfaff wrote: > On Mon, Nov 03, 2014 at 11:39:02AM -0800, Jarno Rajahalme wrote: >> Some struct cls_match and cls_subtable fields were already documented >> of being const. Make them const and use CONST_CAST where appropriate >> to initialize them. >> >> This wi

Re: [ovs-dev] [PATCH v2 3/5] classifier: Constify fields.

2014-11-06 Thread Ben Pfaff
On Mon, Nov 03, 2014 at 11:39:02AM -0800, Jarno Rajahalme wrote: > Some struct cls_match and cls_subtable fields were already documented > of being const. Make them const and use CONST_CAST where appropriate > to initialize them. > > This will help catch future errors modifying those fields after

[ovs-dev] [PATCH v2 3/5] classifier: Constify fields.

2014-11-03 Thread Jarno Rajahalme
Some struct cls_match and cls_subtable fields were already documented of being const. Make them const and use CONST_CAST where appropriate to initialize them. This will help catch future errors modifying those fields after initialization. Signed-off-by: Jarno Rajahalme --- lib/classifier-priva