ofp-util: Work on decoding OF1.1 flow_mods.
[openvswitch] / tests / test-csum.c
index 81f54b809200d71b8d7e8b8901a5355c5fb91db6..5f736d6cc929f7ee70b9234939899be4e93ea576 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009, 2010, 2011 Nicira Networks.
+ * Copyright (c) 2009, 2010, 2011 Nicira, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -140,8 +140,9 @@ main(void)
     int i;
 
     for (tc = test_cases; tc < &test_cases[ARRAY_SIZE(test_cases)]; tc++) {
-        const ovs_be16 *data16 = (OVS_FORCE const ovs_be16 *) tc->data;
-        const ovs_be32 *data32 = (OVS_FORCE const ovs_be32 *) tc->data;
+        const void *data = tc->data;
+        const ovs_be16 *data16 = (OVS_FORCE const ovs_be16 *) data;
+        const ovs_be32 *data32 = (OVS_FORCE const ovs_be32 *) data;
         uint32_t partial;
 
         /* Test csum(). */