aboutsummaryrefslogtreecommitdiff
path: root/example/l2fwd_simple/odp_l2fwd_simple.c
diff options
context:
space:
mode:
Diffstat (limited to 'example/l2fwd_simple/odp_l2fwd_simple.c')
-rw-r--r--example/l2fwd_simple/odp_l2fwd_simple.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/l2fwd_simple/odp_l2fwd_simple.c b/example/l2fwd_simple/odp_l2fwd_simple.c
index 94f21ddf2..c9ae94c12 100644
--- a/example/l2fwd_simple/odp_l2fwd_simple.c
+++ b/example/l2fwd_simple/odp_l2fwd_simple.c
@@ -247,8 +247,8 @@ int main(int argc, char **argv)
odp_cpumask_default_worker(&cpumask, MAX_WORKERS);
- memset(&thr_common, 0, sizeof(thr_common));
- memset(&thr_param, 0, sizeof(thr_param));
+ odph_thread_common_param_init(&thr_common);
+ odph_thread_param_init(&thr_param);
thr_param.start = run_worker;
thr_param.thr_type = ODP_THREAD_WORKER;