classifier: In testing, don't put cls_rule at beginning of test_rule.
authorBen Pfaff <blp@nicira.com>
Wed, 4 Mar 2009 21:08:18 +0000 (13:08 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 4 Mar 2009 21:29:06 +0000 (13:29 -0800)
commitef7e7d52e4830aef0b681e88ed394de46525cbc1
tree2b0052946e2419142c5fa7997d0758d7bc4f999c
parentc5fd2f5c51ffe6359df4fafc21116313cc73d2d7
classifier: In testing, don't put cls_rule at beginning of test_rule.

If we put cls_rule at the beginning of struct test_rule, then a cast is
sufficient to convert a pointer between the two, but we want to make sure
that we don't ever take that shortcut, because it is not valid in general.
tests/test-classifier.c