summaryrefslogtreecommitdiff
path: root/examples/l3fwd-acl
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2015-02-14 09:59:10 -0500
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-03-04 21:50:42 +0100
commit435eb142bbd7c90299ffce2d389395927b1f7692 (patch)
tree53caf9b64254937063c6b27f99d6435f6ec64ead /examples/l3fwd-acl
parent490a1f0a25cb444bbe18c2faf3d510ed84018b70 (diff)
downloaddpdk-435eb142bbd7c90299ffce2d389395927b1f7692.zip
dpdk-435eb142bbd7c90299ffce2d389395927b1f7692.tar.gz
dpdk-435eb142bbd7c90299ffce2d389395927b1f7692.tar.xz
examples: remove unneeded casts
*alloc() routines return void * and therefore cast is not needed. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Reviewed-by: Bruce Richardson <bruce.richardson@intel.com> [Thomas: reverse num and size parameters in vhost calloc]
Diffstat (limited to 'examples/l3fwd-acl')
-rw-r--r--examples/l3fwd-acl/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/l3fwd-acl/main.c b/examples/l3fwd-acl/main.c
index e851768..9d84b20 100644
--- a/examples/l3fwd-acl/main.c
+++ b/examples/l3fwd-acl/main.c
@@ -1044,13 +1044,13 @@ add_rules(const char *rule_path,
fseek(fh, 0, SEEK_SET);
- acl_rules = (uint8_t *)calloc(acl_num, rule_size);
+ acl_rules = calloc(acl_num, rule_size);
if (NULL == acl_rules)
rte_exit(EXIT_FAILURE, "%s: failed to malloc memory\n",
__func__);
- route_rules = (uint8_t *)calloc(route_num, rule_size);
+ route_rules = calloc(route_num, rule_size);
if (NULL == route_rules)
rte_exit(EXIT_FAILURE, "%s: failed to malloc memory\n",