--- libaitsched/src/tasks.c 2022/11/28 23:29:59 1.29.4.1 +++ libaitsched/src/tasks.c 2022/11/28 23:52:35 1.29.4.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: tasks.c,v 1.29.4.1 2022/11/28 23:29:59 misho Exp $ +* $Id: tasks.c,v 1.29.4.2 2022/11/28 23:52:35 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -172,10 +172,11 @@ schedReadExt(sched_root_task_t * __restrict root, sche TASK_DATA(task) = opt_data; TASK_DATLEN(task) = opt_dlen; - TASK_HARG(task) = (void*) mask; + TASK_HARG(task) = mask; if (root->root_hooks.hook_add.read) - ptr = root->root_hooks.hook_add.read(task, task->task_harg); + ptr = root->root_hooks.hook_add.read(task, + (void*) task->task_harg); else ptr = NULL;