]> git.proxmox.com Git - ovs.git/commit - lib/classifier-private.h
classifier: Constify fields.
authorJarno Rajahalme <jrajahalme@nicira.com>
Mon, 27 Oct 2014 17:57:28 +0000 (10:57 -0700)
committerJarno Rajahalme <jrajahalme@nicira.com>
Thu, 6 Nov 2014 23:02:12 +0000 (15:02 -0800)
commitf80028fe28bf2d73e3e4e470e2d5f9ccb5ece9a7
tree48b6a138301a7ec9422e04ad264eccb2eb2c78ef
parent98abae4aa63b3f518f34455dd42a15241bce6f09
classifier: Constify fields.

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 <jrajahalme@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/classifier-private.h
lib/classifier.c