--- libaitsched/src/hooks.c 2012/05/31 21:48:01 1.7.2.4 +++ libaitsched/src/hooks.c 2012/05/31 22:11:19 1.7.2.5 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: hooks.c,v 1.7.2.4 2012/05/31 21:48:01 misho Exp $ +* $Id: hooks.c,v 1.7.2.5 2012/05/31 22:11:19 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -652,7 +652,7 @@ sched_hook_fetch(void *root, void *arg __unused) if (TASK_FD(task) != ((intptr_t) res[i].udata)) continue; else { - TASK_DATA(task) = (void*) res[i].data; + TASK_DATA(task) = (void*) (uintptr_t) res[i].data; TASK_DATLEN(task) = res[i].fflags; } /* remove node handle */ @@ -679,7 +679,7 @@ sched_hook_fetch(void *root, void *arg __unused) if (TASK_VAL(task) != ((uintptr_t) res[i].udata)) continue; else { - TASK_DATA(task) = (void*) res[i].data; + TASK_DATA(task) = (void*) (uintptr_t) res[i].data; TASK_DATLEN(task) = res[i].fflags; } /* remove proc handle */